diff options
author | 2020-11-13 20:51:39 +0800 | |
---|---|---|
committer | 2020-12-08 15:54:14 +0100 | |
commit | 829ddec922e51ad2740f16646ce701314d9aa509 (patch) | |
tree | 53e21317ab055dc4efba995a39c691a92741435b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | btrfs: remove unused parameter phy_offset from btrfs_validate_metadata_buffer (diff) | |
download | linux-rng-829ddec922e51ad2740f16646ce701314d9aa509.tar.xz linux-rng-829ddec922e51ad2740f16646ce701314d9aa509.zip |
btrfs: only clear EXTENT_LOCK bit in extent_invalidatepage
extent_invalidatepage() will try to clear all possible bits since it's
calling clear_extent_bit() with delete == 1.
This is currently fine, since for btree io tree, it only utilizes
EXTENT_LOCK bit. But this could be a problem for later subpage support,
which will utilize extra io tree bit to represent additional info.
This patch will just convert that clear_extent_bit() to
unlock_extent_cached().
For current code since only EXTENT_LOCKED bit is utilized, this doesn't
change the behavior, but provides a much cleaner basis for incoming
subpage support.
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions