]> 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)
commit60115b8f30cd7dd82248f8920205ea4d602653b3
tree11c07b99c363a2b4fccf42fc78fd5cf907200bfc
parent41d37b90f550fb2b33b6ef18845883fb9a854ca2
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