]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: collect only the necessary ordered extents on ranged fsync
authorFilipe Manana <fdmanana@suse.com>
Thu, 13 Nov 2014 17:00:35 +0000 (17:00 +0000)
committerChris Mason <clm@fb.com>
Fri, 21 Nov 2014 19:59:56 +0000 (11:59 -0800)
commit9778b475c32a431f2d8581bcbe4f682566805648
tree11c07b99c363a2b4fccf42fc78fd5cf907200bfc
parent81ef70b53c098bb3a19b4663cfd0cb6a9ffb181e
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>
fs/btrfs/ordered-data.c
fs/btrfs/ordered-data.h
fs/btrfs/tree-log.c