aboutsummaryrefslogtreecommitdiff
path: root/mm/memcontrol.c
diff options
context:
space:
mode:
authorGravatar Ma Wupeng <mawupeng1@huawei.com> 2022-11-25 14:54:44 +0800
committerGravatar Andrew Morton <akpm@linux-foundation.org> 2022-11-30 15:59:08 -0800
commite0ff428042335c7b62785b3cf911c427a618bc86 (patch)
tree63c0769d658091792d37545ae74e66c78b7499f1 /mm/memcontrol.c
parentmm/thp: re-apply mkdirty for small pages after split (diff)
downloadlinux-e0ff428042335c7b62785b3cf911c427a618bc86.tar.gz
linux-e0ff428042335c7b62785b3cf911c427a618bc86.tar.bz2
linux-e0ff428042335c7b62785b3cf911c427a618bc86.zip
mm/memory-failure.c: cleanup in unpoison_memory
If freeit is true, the value of ret must be zero, there is no need to check the value of freeit after label unlock_mutex. We can drop variable freeit to do this cleanup. Link: https://lkml.kernel.org/r/20221125065444.3462681-1-mawupeng1@huawei.com Signed-off-by: Ma Wupeng <mawupeng1@huawei.com> Acked-by: Naoya Horiguchi <naoya.horiguchi@nec.com> Reviewed-by: Miaohe Lin <linmiaohe@huawei.com> Cc: zhenwei pi <pizhenwei@bytedance.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/memcontrol.c')
0 files changed, 0 insertions, 0 deletions