diff options
author | 2024-02-28 14:36:33 +0000 | |
---|---|---|
committer | 2024-03-05 18:14:19 +0100 | |
commit | 1cab1375ba6d5337a25acb346996106c12bb2dd0 (patch) | |
tree | 74882dd6bcf9a2fe6f3d0eeb1fdccf27d8fb57fc /kernel/configs | |
parent | btrfs: fix race when detecting delalloc ranges during fiemap (diff) | |
download | linux-rng-1cab1375ba6d5337a25acb346996106c12bb2dd0.tar.xz linux-rng-1cab1375ba6d5337a25acb346996106c12bb2dd0.zip |
btrfs: reuse cloned extent buffer during fiemap to avoid re-allocations
During fiemap we may have to visit multiple leaves of the subvolume's
inode tree, and each time we are freeing and allocating an extent buffer
to use as a clone of each visited leaf. Optimize this by reusing cloned
extent buffers, to avoid the freeing and re-allocation both of the extent
buffer structure itself and more importantly of the pages attached to the
extent buffer.
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'kernel/configs')
0 files changed, 0 insertions, 0 deletions