summaryrefslogtreecommitdiff
path: root/fs/btrfs/compression.c
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2025-03-25 20:26:37 +0300
committerDavid Sterba <dsterba@suse.com>2025-05-15 15:30:40 +0300
commitc4669e4a8b660143ad1fc9743dcb2a3d81a74b42 (patch)
tree4881c2c3dfe646b92b7b2fa2b110fda733612c36 /fs/btrfs/compression.c
parent32c523c578e8489f55663ce8a8860079c8deb414 (diff)
downloadlinux-c4669e4a8b660143ad1fc9743dcb2a3d81a74b42.tar.xz
btrfs: pass a pointer to get_range_bits() to cache first search result
Allow get_range_bits() to take an extent state pointer to pointer argument so that we can cache the first extent state record in the target range, so that a caller can use it for subsequent operations without doing a full tree search. Currently the only user is try_release_extent_state(), which then does a call to __clear_extent_bit() which can use such a cached state record. Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/compression.c')
0 files changed, 0 insertions, 0 deletions