WSL2-Linux-Kernel/arch/metag/mm
Johannes Weiner 759496ba64 arch: mm: pass userspace fault flag to generic fault handler
Unlike global OOM handling, memory cgroup code will invoke the OOM killer
in any OOM situation because it has no way of telling faults occuring in
kernel context - which could be handled more gracefully - from
user-triggered faults.

Pass a flag that identifies faults originating in user space from the
architecture-specific fault handlers to generic code so that memcg OOM
handling can be improved.

Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Reviewed-by: Michal Hocko <mhocko@suse.cz>
Cc: David Rientjes <rientjes@google.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: azurIt <azurit@pobox.sk>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2013-09-12 15:38:01 -07:00
..
Kconfig Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc 2013-05-02 10:16:16 -07:00
Makefile metag: Build infrastructure 2013-03-02 20:09:54 +00:00
cache.c metag/mm/cache: Restrict scope for metag_lnkget_probe 2013-06-13 12:55:28 +01:00
extable.c metag: Memory management 2013-03-02 20:09:19 +00:00
fault.c arch: mm: pass userspace fault flag to generic fault handler 2013-09-12 15:38:01 -07:00
highmem.c metag: Highmem support 2013-03-02 20:09:20 +00:00
hugetlbpage.c mm: migrate: check movability of hugepage in unmap_and_move_huge_page() 2013-09-11 15:57:49 -07:00
init.c of: Specify initrd location using 64-bit 2013-07-24 11:10:01 +01:00
ioremap.c metag: Memory handling 2013-03-02 20:09:19 +00:00
l2cache.c metag: Cache/TLB handling 2013-03-02 20:09:19 +00:00
maccess.c metag: Memory handling 2013-03-02 20:09:19 +00:00
mmu-meta1.c metag: Memory management 2013-03-02 20:09:19 +00:00
mmu-meta2.c metag: Memory management 2013-03-02 20:09:19 +00:00
numa.c metag: TCM support 2013-03-02 20:09:21 +00:00