Loading mm/zsmalloc.c +6 −3 Original line number Diff line number Diff line Loading @@ -559,20 +559,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]; } Loading Loading
mm/zsmalloc.c +6 −3 Original line number Diff line number Diff line Loading @@ -559,20 +559,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]; } Loading