From 4395e0c4da486f007dcb45b0336427be7ec08ab1 Mon Sep 17 00:00:00 2001 From: Filipe Manana Date: Wed, 20 Aug 2014 10:45:45 +0100 Subject: [PATCH] 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 Signed-off-by: Filipe Manana Signed-off-by: Chris Mason --- Reading git-format-patch failed