diff options
author | NeilBrown <neilb@suse.com> | 2018-05-07 10:54:48 +1000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-05-08 13:09:20 +0200 |
commit | fc5f499af16c247c5bff68d2625a6d1ca48b3332 (patch) | |
tree | 83e204d81d8a5476be57f1e94a0270d56a76312e /drivers/staging/lustre/include/linux/libcfs/libcfs.h | |
parent | 775c4dc274343e5e2959fa1171baf2fc01028840 (diff) | |
download | op-kernel-dev-fc5f499af16c247c5bff68d2625a6d1ca48b3332.zip op-kernel-dev-fc5f499af16c247c5bff68d2625a6d1ca48b3332.tar.gz |
staging: lustre: llite: use more private data in dump_pgcache
The dump_page_cache debugfs file allocates and frees an 'env' in each
call to vvp_pgcache_start,next,show. This is likely to be fast, but
does introduce the need to check for errors.
It is reasonable to allocate a single 'env' when the file is opened,
and use that throughout.
So create 'seq_private' structure which stores the sbi, env, and
refcheck, and attach this to the seqfile.
Then use it throughout instead of allocating 'env' repeatedly.
Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/lustre/include/linux/libcfs/libcfs.h')
0 files changed, 0 insertions, 0 deletions