diff options
author | Kefeng Wang <wangkefeng.wang@huawei.com> | 2022-10-21 16:46:11 +0800 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2022-11-08 17:37:21 -0800 |
commit | b66d00dfebe79ebd0d5a0ec4ee4e26583432c381 (patch) | |
tree | d9327220d9d2fc70e209a4bd619b023701dc0e75 /mm/mprotect.c | |
parent | 183a7c5d15d3c56f49955662d3edd0092141df78 (diff) | |
download | linux-b66d00dfebe79ebd0d5a0ec4ee4e26583432c381.tar.bz2 |
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>
Diffstat (limited to 'mm/mprotect.c')
0 files changed, 0 insertions, 0 deletions