ARM: 9165/1: mm: Provide is_write_fault()
authorWang Kefeng <wangkefeng.wang@huawei.com>
Fri, 3 Dec 2021 09:26:32 +0000 (10:26 +0100)
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Fri, 17 Dec 2021 11:34:37 +0000 (11:34 +0000)
commit3c341b217414d1d63718438f2b2fa588cf2b73fc
treea339e5c295aec4ff8e8c0aae2b1c825909b264be
parent0ba8695e3dfbbc78ed716805678119121d33a730
ARM: 9165/1: mm: Provide is_write_fault()

The function will check whether the fault is caused by a write access,
it will be called in die_kernel_fault() too in next patch, so put it
before the function of die_kernel_fault().

Acked-by: Marco Elver <elver@google.com>
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
arch/arm/mm/fault.c