mm: memory-failure: make action_result() return int
authorKefeng Wang <wangkefeng.wang@huawei.com>
Fri, 21 Oct 2022 08:46:11 +0000 (16:46 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 9 Nov 2022 01:37:21 +0000 (17:37 -0800)
commitb66d00dfebe79ebd0d5a0ec4ee4e26583432c381
treed9327220d9d2fc70e209a4bd619b023701dc0e75
parent183a7c5d15d3c56f49955662d3edd0092141df78
mm: memory-failure: make action_result() return int

Check mf_result in action_result(), only return 0 when MF_RECOVERED,
or return -EBUSY, which will simplify code a bit.

[wangkefeng.wang@huawei.com: v2]
Link: https://lkml.kernel.org/r/20221024035138.99119-1-wangkefeng.wang@huawei.com
Link: https://lkml.kernel.org/r/20221021084611.53765-3-wangkefeng.wang@huawei.com
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Acked-by: Naoya Horiguchi <naoya.horiguchi@nec.com>
Reviewed-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memory-failure.c