diff options
author | 2018-01-09 12:19:38 +1100 | |
---|---|---|
committer | 2018-01-09 15:41:56 +0100 | |
commit | 2aa8b1b728da158d8c55f0bd589468183e7865c1 (patch) | |
tree | 3ebe18aa40169ca92faec305926da86c7fe65e3e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | staging: lustre: lnet: selftest: don't allocate small strings. (diff) | |
download | linux-rng-2aa8b1b728da158d8c55f0bd589468183e7865c1.tar.xz linux-rng-2aa8b1b728da158d8c55f0bd589468183e7865c1.zip |
staging: lustre: lnet: use kmalloc/kvmalloc in router_proc
The buffers allocated in router_proc are to temporarily
hold strings created for procfs files.
So they do not need to be zeroed and are safe to use
GFP_KERNEL.
So use kmalloc() directly except in two cases where it
isn't trivial to confirm that the size is always small.
In those cases, use kvmalloc().
Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions