btrfs: remove the wait ordered logic in the log_one_extent path
commite7175a692765940f3ac3f0c005b9a766a59303d7
authorJosef Bacik <jbacik@fb.com>
Wed, 23 May 2018 15:58:34 +0000 (23 11:58 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 6 Aug 2018 11:12:30 +0000 (6 13:12 +0200)
tree4be2cd6437bfbcf73930f122e05d89a04ee3ffcc
parentb5e6c3e170b77025b5f6174258c7ad71eed2d4de
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