diff options
author | Qu Wenruo <wqu@suse.com> | 2020-11-13 20:51:39 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2020-12-08 15:54:14 +0100 |
commit | 829ddec922e51ad2740f16646ce701314d9aa509 (patch) | |
tree | 53e21317ab055dc4efba995a39c691a92741435b /fs/btrfs/file-item.c | |
parent | 8e1dc982ed5fa52596504054a0713bf5acbe19f0 (diff) | |
download | linux-829ddec922e51ad2740f16646ce701314d9aa509.tar.gz |
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 'fs/btrfs/file-item.c')
0 files changed, 0 insertions, 0 deletions