summaryrefslogtreecommitdiff
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorRuan Jinjie <ruanjinjie@huawei.com>2023-08-03 19:38:23 +0800
committerAndrew Morton <akpm@linux-foundation.org>2023-08-21 13:37:38 -0700
commit73d4719363371afdcd63143c3532fa6a9443de13 (patch)
tree62850e20330101f84e9380f329aab6989249cd1c /mm/page_alloc.c
parent41a7ed8cfd54d85adbb5f48cd3673dd7ff0eb450 (diff)
downloadlwn-73d4719363371afdcd63143c3532fa6a9443de13.tar.gz
lwn-73d4719363371afdcd63143c3532fa6a9443de13.zip
mm/z3fold: use helper function put_z3fold_locked() and put_z3fold_locked_list()
This code is already duplicated six times, use helper function put_z3fold_locked() to release z3fold page instead of open code it to help improve code readability a bit. And add put_z3fold_locked_list() helper function to be consistent with it. No functional change involved. Link: https://lkml.kernel.org/r/20230803113824.886413-1-ruanjinjie@huawei.com Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com> Reviewed-by: Miaohe Lin <linmiaohe@huawei.com> Cc: Vitaly Wool <vitaly.wool@konsulko.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/page_alloc.c')
0 files changed, 0 insertions, 0 deletions