summaryrefslogtreecommitdiff
path: root/fs/btrfs/scrub.c
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2024-02-28 17:36:33 +0300
committerDavid Sterba <dsterba@suse.com>2024-03-05 20:14:19 +0300
commit1cab1375ba6d5337a25acb346996106c12bb2dd0 (patch)
tree74882dd6bcf9a2fe6f3d0eeb1fdccf27d8fb57fc /fs/btrfs/scrub.c
parent978b63f7464abcfd364a6c95f734282c50f3decf (diff)
downloadlinux-1cab1375ba6d5337a25acb346996106c12bb2dd0.tar.xz
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 'fs/btrfs/scrub.c')
0 files changed, 0 insertions, 0 deletions