aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/tree-log.c
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2014-11-13 12:00:35 -0500
committerChris Mason <clm@fb.com>2014-11-21 14:59:56 -0500
commit0870295b2371673b3563735825ad559409d8cedc (patch)
tree11c07b99c363a2b4fccf42fc78fd5cf907200bfc /fs/btrfs/tree-log.c
parent5ab5e44a36164f0366a98b47289c868d8fbcb256 (diff)
Btrfs: collect only the necessary ordered extents on ranged fsync
Instead of collecting all ordered extents from the inode's ordered tree and then wait for all of them to complete, just collect the ones that overlap the fsync range. Signed-off-by: Filipe Manana <fdmanana@suse.com> Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/btrfs/tree-log.c')
-rw-r--r--fs/btrfs/tree-log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c
index afe483cb27b0..3883d0febd82 100644
--- a/fs/btrfs/tree-log.c
+++ b/fs/btrfs/tree-log.c
@@ -3972,7 +3972,7 @@ static int btrfs_log_inode(struct btrfs_trans_handle *trans,
3972 3972
3973 mutex_lock(&BTRFS_I(inode)->log_mutex); 3973 mutex_lock(&BTRFS_I(inode)->log_mutex);
3974 3974
3975 btrfs_get_logged_extents(inode, &logged_list); 3975 btrfs_get_logged_extents(inode, &logged_list, start, end);
3976 3976
3977 /* 3977 /*
3978 * a brute force approach to making sure we get the most uptodate 3978 * a brute force approach to making sure we get the most uptodate