Skip to content

Commit 4d0e323

Browse files
Qian Caitorvalds
Qian Cai
authored andcommitted
mm/memcontrol.c: fix a -Wunused-function warning
mem_cgroup_id_get() was introduced in commit 73f576c ("mm:memcontrol: fix cgroup creation failure after many small jobs"). Later, it no longer has any user since the commits, 1f47b61 ("mm: memcontrol: fix swap counter leak on swapout from offline cgroup") 58fa2a5 ("mm: memcontrol: add sanity checks for memcg->id.ref on get/put") so safe to remove it. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Qian Cai <[email protected]> Acked-by: Michal Hocko <[email protected]> Cc: Johannes Weiner <[email protected]> Cc: Vladimir Davydov <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 1eb41bb commit 4d0e323

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

mm/memcontrol.c

-5
Original file line numberDiff line numberDiff line change
@@ -4930,11 +4930,6 @@ static void mem_cgroup_id_put_many(struct mem_cgroup *memcg, unsigned int n)
49304930
}
49314931
}
49324932

4933-
static inline void mem_cgroup_id_get(struct mem_cgroup *memcg)
4934-
{
4935-
mem_cgroup_id_get_many(memcg, 1);
4936-
}
4937-
49384933
static inline void mem_cgroup_id_put(struct mem_cgroup *memcg)
49394934
{
49404935
mem_cgroup_id_put_many(memcg, 1);

0 commit comments

Comments
 (0)