diff options
| author | Sergey Senozhatsky <[email protected]> | 2024-07-01 12:11:37 +0900 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-07-12 15:52:13 -0700 |
| commit | 791abe1e420c3dad6ddbd0a6c40467e9e24059b7 (patch) | |
| tree | 58912fb44ba580e2c6d0dd086c4d1713ad1852ae /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 9b89e018990de47c72ef8b2ca29204f88fda8f05 (diff) | |
zsmalloc: rename class stat mutators
A cosmetic change.
o Rename class_stat_inc() and class_stat_dec() to class_stat_add()
and class_stat_sub() correspondingly. inc/dec are usually associated
with +1/-1 modifications, while zsmlloc can modify stats by up
to ->objs_per_zspage. Use add/sub (follow atomics naming).
o Rename zs_stat_get() to class_stat_read()
get() is usually associated with ref-counting and is paired with put().
zs_stat_get() simply reads class stat so rename to reflect it.
(This also follows atomics naming).
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Sergey Senozhatsky <[email protected]>
Reviewed-by: Chengming Zhou <[email protected]>
Cc: Minchan Kim <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions