Sergey Senozhatsky 791abe1e42 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>
2024-07-12 15:52:13 -07:00
..
2024-07-10 12:14:54 -07:00
2024-07-03 19:29:59 -07:00
2024-07-12 15:52:08 -07:00
2023-12-12 10:11:32 +01:00
2024-07-10 12:14:54 -07:00
2024-07-10 12:14:54 -07:00
2024-07-10 12:14:54 -07:00
2024-07-03 19:30:17 -07:00
2024-05-23 19:40:26 -07:00
2024-07-10 12:14:54 -07:00
2024-07-10 12:14:54 -07:00
2024-07-10 12:14:54 -07:00
2024-07-10 12:14:54 -07:00
2024-07-10 12:14:54 -07:00
2024-07-03 19:30:19 -07:00
2024-07-06 11:53:19 -07:00
2024-04-25 20:55:48 -07:00
2024-04-25 20:55:48 -07:00
2024-04-25 20:55:48 -07:00
2024-07-12 15:52:09 -07:00