summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent_io.h
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2014-08-20 10:45:45 +0100
committerChris Mason <clm@fb.com>2014-09-17 13:38:16 -0700
commit4395e0c4da486f007dcb45b0336427be7ec08ab1 (patch)
tree3396fecc7f51ee2947133df851bc2a6c8c1cd15c /fs/btrfs/extent_io.h
parentf87c4318af8bd5daec361e436c69f9d71a43b261 (diff)
downloadop-kernel-dev-4395e0c4da486f007dcb45b0336427be7ec08ab1.zip
op-kernel-dev-4395e0c4da486f007dcb45b0336427be7ec08ab1.tar.gz
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 <lists@colorremedies.com> Signed-off-by: Filipe Manana <fdmanana@suse.com> Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/btrfs/extent_io.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud