]> git.hungrycats.org Git - linux/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)
committerZygo Blaxell <zblaxell@serenity.furryterror.org>
Fri, 23 Jan 2015 13:17:43 +0000 (08:17 -0500)
commitd317c84ee90459d28830afd14585c13000008e76
treea1dcf4a860190e666a34f4311b1947dfd49ff3a1
parent5618c3bf89959c7adffa5db8f18cb272c90fa7f2
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>
(cherry picked from commit 0870295b2371673b3563735825ad559409d8cedc)
fs/btrfs/ordered-data.c
fs/btrfs/ordered-data.h
fs/btrfs/tree-log.c