Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 67c9adf0 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "mm/zsmalloc.c: change stat type parameter to int"

parents f253f9b1 0dbfde62
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -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];
}