Re: [PATCH] Btrfs: send, lower mem requirements for processing xattrs

2014-08-20 Thread David Sterba
On Sun, Aug 10, 2014 at 11:52:09PM +, Josef Bacik wrote: Sigh I can only top post from my phone. Can you at least snip the original text? -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of a message to majord...@vger.kernel.org More majordomo info at

[PATCH] Btrfs: send, lower mem requirements for processing xattrs

2014-08-10 Thread Filipe Manana
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

Re: [PATCH] Btrfs: send, lower mem requirements for processing xattrs

2014-08-10 Thread Josef Bacik
Sigh I can only top post from my phone. Instead of using contig_bug just use is_vmalloc_addr. Thanks, Josef Filipe Manana fdman...@suse.com wrote: 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

Re: [PATCH] Btrfs: send, lower mem requirements for processing xattrs

2014-08-10 Thread Filipe David Manana
On Mon, Aug 11, 2014 at 12:52 AM, Josef Bacik jba...@fb.com wrote: Sigh I can only top post from my phone. Instead of using contig_bug just use is_vmalloc_addr. Thanks, Thanks Josef, I wasn't aware of that helper function. Josef Filipe Manana fdman...@suse.com wrote: Maximum xattr