summaryrefslogtreecommitdiffstats
path: root/mm/memory-failure.c
diff options
context:
space:
mode:
authorOleg Nesterov2014-06-05 01:07:55 +0200
committerLinus Torvalds2014-06-05 01:54:03 +0200
commitdc6f6c97f1d3d58fef81f0f9db0c7d068b2cf392 (patch)
tree14b7ab2ab8060b41a7e262ea36b0dee1b2809e30 /mm/memory-failure.c
parentmemcg: optimize the "Search everything else" loop in mm_update_next_owner() (diff)
downloadkernel-qcow2-linux-dc6f6c97f1d3d58fef81f0f9db0c7d068b2cf392.tar.gz
kernel-qcow2-linux-dc6f6c97f1d3d58fef81f0f9db0c7d068b2cf392.tar.xz
kernel-qcow2-linux-dc6f6c97f1d3d58fef81f0f9db0c7d068b2cf392.zip
memcg: kill start_kernel()->mm_init_owner(&init_mm)
Remove start_kernel()->mm_init_owner(&init_mm, &init_task). This doesn't really hurt but unnecessary and misleading. init_task is the "swapper" thread == current, its ->mm is always NULL. And init_mm can only be used as ->active_mm, not as ->mm. mm_init_owner() has a single caller with this patch, perhaps it should die. mm_init() can initialize ->owner under #ifdef. Signed-off-by: Oleg Nesterov <oleg@redhat.com> Reviewed-by: Michal Hocko <mhocko@suse.cz> Cc: Balbir Singh <bsingharora@gmail.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Cc: Michal Hocko <mhocko@suse.cz> Cc: Peter Chiang <pchiang@nvidia.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memory-failure.c')
0 files changed, 0 insertions, 0 deletions