diff options
author | David Sterba <dsterba@suse.com> | 2019-05-15 16:31:04 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-07-01 14:34:53 +0300 |
commit | 5911c8fe05c54c9f74a6467650e6493e4808cd01 (patch) | |
tree | 039d2c9ea71a7d7f74d7a1ba483e8bf989d8737a /fs/btrfs/dev-replace.c | |
parent | 9b4e675a9978800995f83af0ed90e890ca501f31 (diff) | |
download | linux-5911c8fe05c54c9f74a6467650e6493e4808cd01.tar.xz |
btrfs: fiemap: preallocate ulists for btrfs_check_shared
btrfs_check_shared looks up parents of a given extent and uses ulists
for that. These are allocated and freed repeatedly. Preallocation in the
caller will avoid the overhead and also allow us to use the GFP_KERNEL
as it is happens before the extent locks are taken.
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions