diff options
| author | David Sterba <[email protected]> | 2014-02-05 15:17:34 +0000 |
|---|---|---|
| committer | Josef Bacik <[email protected]> | 2014-03-10 19:15:50 +0000 |
| commit | ace0105076a493c04e6d5e91e6a19f222d6b3875 (patch) | |
| tree | 903f5a7da2a76695216aa55840be357c9c7db6a6 /fs/btrfs/async-thread.c | |
| parent | Btrfs: make some tree searches in send.c more efficient (diff) | |
| download | kernel-ace0105076a493c04e6d5e91e6a19f222d6b3875.tar.gz kernel-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 <[email protected]>
Signed-off-by: Josef Bacik <[email protected]>
Diffstat (limited to 'fs/btrfs/async-thread.c')
0 files changed, 0 insertions, 0 deletions
