diff options
author | Sergey Senozhatsky <senozhatsky@chromium.org> | 2024-07-01 06:11:37 +0300 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2024-07-13 01:52:13 +0300 |
commit | 791abe1e420c3dad6ddbd0a6c40467e9e24059b7 (patch) | |
tree | 58912fb44ba580e2c6d0dd086c4d1713ad1852ae /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 9b89e018990de47c72ef8b2ca29204f88fda8f05 (diff) | |
download | linux-791abe1e420c3dad6ddbd0a6c40467e9e24059b7.tar.xz |
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/20240701031140.3756345-1-senozhatsky@chromium.org
Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Reviewed-by: Chengming Zhou <chengming.zhou@linux.dev>
Cc: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions