Skip to content

Commit 76edc53

Browse files
Xiu Jianfengakpm00
authored andcommitted
memcg, oom: cleanup unused memcg_oom_gfp_mask and memcg_oom_order
Since commit 857f213 ("memcg, oom: remove unnecessary check in mem_cgroup_oom_synchronize()"), memcg_oom_gfp_mask and memcg_oom_order are no longer used any more. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Xiu Jianfeng <[email protected]> Acked-by: Michal Hocko <[email protected]> Acked-by: Shakeel Butt <[email protected]> Reviewed-by: Roman Gushchin <[email protected]> Cc: Johannes Weiner <[email protected]> Cc: Muchun Song <[email protected]> Cc: Benjamin Segall <[email protected]> Cc: Daniel Bristot de Oliveira <[email protected]> Cc: Dietmar Eggemann <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Juri Lelli <[email protected]> Cc: Mel Gorman <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Steven Rostedt (Google) <[email protected]> Cc: Valentin Schneider <[email protected]> Cc: Vincent Guittot <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent b665eed commit 76edc53

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

include/linux/sched.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1448,8 +1448,6 @@ struct task_struct {
14481448

14491449
#ifdef CONFIG_MEMCG
14501450
struct mem_cgroup *memcg_in_oom;
1451-
gfp_t memcg_oom_gfp_mask;
1452-
int memcg_oom_order;
14531451

14541452
/* Number of pages to reclaim on returning to userland: */
14551453
unsigned int memcg_nr_pages_over_high;

mm/memcontrol.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2188,8 +2188,6 @@ static bool mem_cgroup_oom(struct mem_cgroup *memcg, gfp_t mask, int order)
21882188
if (current->in_user_fault) {
21892189
css_get(&memcg->css);
21902190
current->memcg_in_oom = memcg;
2191-
current->memcg_oom_gfp_mask = mask;
2192-
current->memcg_oom_order = order;
21932191
}
21942192
return false;
21952193
}

0 commit comments

Comments
 (0)