diff options
author | Filipe Manana <fdmanana@suse.com> | 2014-11-13 20:00:35 +0300 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2014-11-21 22:59:56 +0300 |
commit | 0870295b2371673b3563735825ad559409d8cedc (patch) | |
tree | 11c07b99c363a2b4fccf42fc78fd5cf907200bfc /fs/btrfs/tree-log.c | |
parent | 5ab5e44a36164f0366a98b47289c868d8fbcb256 (diff) | |
download | linux-0870295b2371673b3563735825ad559409d8cedc.tar.xz |
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.c | 2 |
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, mutex_lock(&BTRFS_I(inode)->log_mutex); - btrfs_get_logged_extents(inode, &logged_list); + btrfs_get_logged_extents(inode, &logged_list, start, end); /* * a brute force approach to making sure we get the most uptodate |