]> Git Repo - linux.git/commitdiff
mm/memcontrol.c: fix a -Wunused-function warning
authorQian Cai <[email protected]>
Mon, 23 Sep 2019 22:37:19 +0000 (15:37 -0700)
committerLinus Torvalds <[email protected]>
Tue, 24 Sep 2019 22:54:10 +0000 (15:54 -0700)
mem_cgroup_id_get() was introduced in commit 73f576c04b94 ("mm:memcontrol:
fix cgroup creation failure after many small jobs").

Later, it no longer has any user since the commits,

1f47b61fb407 ("mm: memcontrol: fix swap counter leak on swapout from offline cgroup")
58fa2a5512d9 ("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]>
mm/memcontrol.c

index 80131025f2da5c5acafaebbde765d8abde681c73..701c1ab79d243a63a24b0cf0bfb502a36889529e 100644 (file)
@@ -4930,11 +4930,6 @@ static void mem_cgroup_id_put_many(struct mem_cgroup *memcg, unsigned int n)
        }
 }
 
-static inline void mem_cgroup_id_get(struct mem_cgroup *memcg)
-{
-       mem_cgroup_id_get_many(memcg, 1);
-}
-
 static inline void mem_cgroup_id_put(struct mem_cgroup *memcg)
 {
        mem_cgroup_id_put_many(memcg, 1);
This page took 0.064007 seconds and 4 git commands to generate.