summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/relocation.c
diff options
context:
space:
mode:
authorDavid Sterba2018-05-11 17:57:54 +0200
committerDavid Sterba2018-05-28 18:24:09 +0200
commitbf5091c8d69e95c34dab2224b98a9cb0ccff1aa8 (patch)
treeac3fff8b933faca399ed8edf10f1f3d3c4b9279d /fs/btrfs/relocation.c
parentBtrfs: reuse cmp workspace in EXTENT_SAME ioctl (diff)
downloadkernel-qcow2-linux-bf5091c8d69e95c34dab2224b98a9cb0ccff1aa8.tar.gz
kernel-qcow2-linux-bf5091c8d69e95c34dab2224b98a9cb0ccff1aa8.tar.xz
kernel-qcow2-linux-bf5091c8d69e95c34dab2224b98a9cb0ccff1aa8.zip
btrfs: use kvzalloc for EXTENT_SAME temporary data
The dedupe range is 16 MiB, with 4 KiB pages and 8 byte pointers, the arrays can be 32KiB large. To avoid allocation failures due to fragmented memory, use the allocation with fallback to vmalloc. The arrays are allocated and freed only inside btrfs_extent_same and reused for all the ranges. Reviewed-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/relocation.c')
0 files changed, 0 insertions, 0 deletions