]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: remove the wait ordered logic in the log_one_extent path
authorJosef Bacik <jbacik@fb.com>
Wed, 23 May 2018 15:58:34 +0000 (11:58 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 6 Aug 2018 11:12:30 +0000 (13:12 +0200)
commitd65bae253929153e2341c9386eb0b0e1543df549
tree4be2cd6437bfbcf73930f122e05d89a04ee3ffcc
parent5ab04a544cca6716c9bc1ec4b16ba186b2e0d0b2
btrfs: remove the wait ordered logic in the log_one_extent path

Since we are waiting on all ordered extents at the start of the fsync()
path we don't need to wait on any logged ordered extents, and we don't
need to look up the checksums on the ordered extents as they will
already be on disk prior to getting here.  Rework this so we're only
looking up and copying the on-disk checksums for the extent range we
care about.

Signed-off-by: Josef Bacik <jbacik@fb.com>
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/tree-log.c