On Sat, 20 Dec 2014 01:38:43 AM Chris Murphy wrote: > I'm feeling too lazy to actually go look for evidence of this; but I > made a file system a while ago with 64KB node/leafsize and ran into a > bug I reported for send/receive. I'm pretty sure this was related to > xattr being limited to nodesize, and I'm also pretty sure it got > fixed. But I'm not sure whether the problem was on the send or receive > side, and I'm not sure when.
I suspect it's this commit and it implies that it's limited to the leafsize: commit 4395e0c4da486f007dcb45b0336427be7ec08ab1 Author: Filipe Manana <fdman...@suse.com> Date: Wed Aug 20 10:45:45 2014 +0100 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 <li...@colorremedies.com> Signed-off-by: Filipe Manana <fdman...@suse.com> Signed-off-by: Chris Mason <c...@fb.com> -- Chris Samuel : http://www.csamuel.org/ : Melbourne, VIC -- 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 http://vger.kernel.org/majordomo-info.html