diff options
| author | NeilBrown <[email protected]> | 2018-05-07 10:54:48 +1000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2018-05-08 13:09:20 +0200 |
| commit | fc5f499af16c247c5bff68d2625a6d1ca48b3332 (patch) | |
| tree | 83e204d81d8a5476be57f1e94a0270d56a76312e /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 775c4dc274343e5e2959fa1171baf2fc01028840 (diff) | |
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 <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions