commit | 632ddfa2131f0fea1831bc1f4b28c68faa779156 | [log] [tgz] |
---|---|---|
author | Josef Bacik <josef@toxicpanda.com> | Fri Sep 30 16:45:10 2022 -0400 |
committer | David Sterba <dsterba@suse.com> | Mon Dec 05 18:00:36 2022 +0100 |
tree | 3bfa0fb94e69d7dbeafc3eca3dd1273c12e18861 | |
parent | 83ae4133ac9410ac6a57136e464d498dc66200cf [diff] |
btrfs: use cached_state for btrfs_check_nocow_lock Now that try_lock_extent() takes a cached_state, plumb the cached_state through btrfs_try_lock_ordered_range() and then use a cached_state in btrfs_check_nocow_lock everywhere to avoid extra tree searches on the extent_io_tree. Reviewed-by: Filipe Manana <fdmanana@suse.com> Signed-off-by: Josef Bacik <josef@toxicpanda.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>