aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorFilipe Manana <[email protected]>2014-08-20 09:45:45 +0000
committerChris Mason <[email protected]>2014-09-17 20:38:16 +0000
commit4395e0c4da486f007dcb45b0336427be7ec08ab1 (patch)
tree3396fecc7f51ee2947133df851bc2a6c8c1cd15c /fs/btrfs/dev-replace.c
parentbtrfs: remove stale define after removing ordered operations (diff)
downloadkernel-4395e0c4da486f007dcb45b0336427be7ec08ab1.tar.gz
kernel-4395e0c4da486f007dcb45b0336427be7ec08ab1.zip
Btrfs: send, lower mem requirements for processing xattrs
Maximum xattr size can be up to nearly the leaf size. For an fs with a leaf size larger than the page size, using kmalloc requires allocating multiple pages that are contiguous, which might not be possible if there's heavy memory fragmentation. Therefore fallback to vmalloc if we fail to allocate with kmalloc. Also start with a smaller buffer size, since xattr values typically are smaller than a page. Reported-by: Chris Murphy <[email protected]> Signed-off-by: Filipe Manana <[email protected]> Signed-off-by: Chris Mason <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions