]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - fs/btrfs/ordered-data.c
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)
commit0870295b2371673b3563735825ad559409d8cedc
tree11c07b99c363a2b4fccf42fc78fd5cf907200bfc
parent5ab5e44a36164f0366a98b47289c868d8fbcb256
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