diff options
| author | Linux Build Service Account <lnxbuild@localhost> | 2020-05-06 00:28:00 -0700 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2020-05-06 00:27:59 -0700 |
| commit | 8f121f01adc0df9a446157f74dc1ae37905dbda1 (patch) | |
| tree | 996e487c678d9164d967992d9c83a744b73f8519 | |
| parent | 17d11a848a15a725936c90df57bd225dcc60ec00 (diff) | |
| parent | b14db0c95e0d396fc3dfb5a30b6cbdec982fb3b2 (diff) | |
Merge "mm/zsmalloc.c: change stat type parameter to int"
| -rw-r--r-- | mm/zsmalloc.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index 80ec65692524..3f1b584bd5d0 100644 --- a/mm/zsmalloc.c +++ b/mm/zsmalloc.c @@ -564,20 +564,23 @@ static int get_size_class_index(int size) return min(zs_size_classes - 1, idx); } +/* type can be of enum type zs_stat_type or fullness_group */ static inline void zs_stat_inc(struct size_class *class, - enum zs_stat_type type, unsigned long cnt) + int type, unsigned long cnt) { class->stats.objs[type] += cnt; } +/* type can be of enum type zs_stat_type or fullness_group */ static inline void zs_stat_dec(struct size_class *class, - enum zs_stat_type type, unsigned long cnt) + int type, unsigned long cnt) { class->stats.objs[type] -= cnt; } +/* type can be of enum type zs_stat_type or fullness_group */ static inline unsigned long zs_stat_get(struct size_class *class, - enum zs_stat_type type) + int type) { return class->stats.objs[type]; } |
