summaryrefslogtreecommitdiff
path: root/fs/btrfs/sysfs.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2014-02-05 19:17:34 +0400
committerJosef Bacik <jbacik@fb.com>2014-03-10 23:15:50 +0400
commitace0105076a493c04e6d5e91e6a19f222d6b3875 (patch)
tree903f5a7da2a76695216aa55840be357c9c7db6a6 /fs/btrfs/sysfs.h
parentdff6d0adbe998927f72fc8d9ceee8ff72b124328 (diff)
downloadlinux-ace0105076a493c04e6d5e91e6a19f222d6b3875.tar.xz
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 <dsterba@suse.cz> Signed-off-by: Josef Bacik <jbacik@fb.com>
Diffstat (limited to 'fs/btrfs/sysfs.h')
0 files changed, 0 insertions, 0 deletions