Displaying 1 result from an estimated 1 matches for "btrfs_get_logged_ext".
2013 Dec 18
2
[PATCH] Btrfs: improve the performance fluctuating of the fsync
...;
---
fs/btrfs/ordered-data.c | 3 +++
fs/btrfs/tree-log.c | 2 --
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/fs/btrfs/ordered-data.c b/fs/btrfs/ordered-data.c
index b8c2ded..df87ed5 100644
--- a/fs/btrfs/ordered-data.c
+++ b/fs/btrfs/ordered-data.c
@@ -433,6 +433,9 @@ void btrfs_get_logged_extents(struct btrfs_root *log, struct inode *inode)
spin_lock_irq(&tree->lock);
for (n = rb_first(&tree->tree); n; n = rb_next(n)) {
ordered = rb_entry(n, struct btrfs_ordered_extent, rb_node);
+ if (ordered->csum_bytes_left)
+ continue;
+
spin_lock(&log->log_exten...