diff options
author | 2014-02-05 16:17:34 +0100 | |
---|---|---|
committer | 2014-03-10 15:15:50 -0400 | |
commit | ace0105076a493c04e6d5e91e6a19f222d6b3875 (patch) | |
tree | 903f5a7da2a76695216aa55840be357c9c7db6a6 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Btrfs: make some tree searches in send.c more efficient (diff) | |
download | linux-dev-ace0105076a493c04e6d5e91e6a19f222d6b3875.tar.xz linux-dev-ace0105076a493c04e6d5e91e6a19f222d6b3875.zip |
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions