android_kernel_samsung_msm8976/arch/xtensa
Johannes Weiner e2ec2c2b96 arch: mm: pass userspace fault flag to generic fault handler
commit 759496ba6407c6994d6a5ce3a5e74937d7816208 upstream.

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: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-11-21 09:22:56 -08:00
..
boot xtensa: fix redboot load address 2013-05-09 01:07:12 -07:00
configs xtensa: remove explicit selection of GENERIC_GPIO 2013-03-20 22:48:15 +09:00
include xtensa: re-wire umount syscall to sys_oldumount 2014-11-21 09:22:53 -08:00
kernel xtensa: fix a6 and a7 handling in fast_syscall_xtensa 2014-10-05 14:54:09 -07:00
lib xtensa: clean up files to make them code-style compliant 2012-12-18 21:10:25 -08:00
mm arch: mm: pass userspace fault flag to generic fault handler 2014-11-21 09:22:56 -08:00
oprofile xtensa: fix oprofile building as module 2013-05-09 01:07:09 -07:00
platforms xtensa: xtfpga: fix definitions of platform devices 2014-02-13 13:48:01 -08:00
variants xtensa: Add config files for Diamond 233L - Rev C processor variant 2013-02-23 19:12:52 -08:00
Kconfig Xtensa patchset for v3.10-rc1 2013-05-09 14:38:16 -07:00
Kconfig.debug xtensa: add s32c1i sanity check 2012-12-18 21:10:22 -08:00
Makefile xtensa: add support for oprofile 2013-02-23 19:22:54 -08:00