From: David Sterba Date: Wed, 5 Feb 2014 15:17:34 +0000 (+0100) Subject: btrfs: send: lower memory requirements in common case X-Git-Tag: v3.15-rc1~96^2~90 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ace0105076a493c04e6d5e91e6a19f222d6b3875;p=pandora-kernel.git btrfs: send: lower memory requirements in common case The fs_path structure uses an inline buffer and falls back to a chain of allocations, but vmalloc is not necessary because PATH_MAX fits into PAGE_SIZE. The size of fs_path has been reduced to 256 bytes from PAGE_SIZE, usually 4k. Experimental measurements show that most paths on a single filesystem do not exceed 200 bytes, and these get stored into the inline buffer directly, which is now 230 bytes. Longer paths are kmalloced when needed. Signed-off-by: David Sterba Signed-off-by: Josef Bacik --- Reading git-diff-tree failed