summaryrefslogtreecommitdiffstats
path: root/mm/z3fold.c
diff options
context:
space:
mode:
authorMiaohe Lin <linmiaohe@huawei.com>2022-04-29 08:16:06 +0200
committerakpm <akpm@linux-foundation.org>2022-04-29 08:16:06 +0200
commitdaf79bd8ee1c8187c133c77a82943ae50994bb66 (patch)
tree23d1e12c1ac394063687a8ddb6355e6bc9918976 /mm/z3fold.c
parentmm/z3fold: remove redundant list_del_init of zhdr->buddy in z3fold_free (diff)
downloadlinux-daf79bd8ee1c8187c133c77a82943ae50994bb66.tar.xz
linux-daf79bd8ee1c8187c133c77a82943ae50994bb66.zip
mm/z3fold: remove unneeded PAGE_HEADLESS check in free_handle()
The only caller z3fold_free() never calls free_handle() in PAGE_HEADLESS case. Remove this unneeded check. Link: https://lkml.kernel.org/r/20220308134311.59086-9-linmiaohe@huawei.com Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> Reviewed-by: Vitaly Wool <vitaly.wool@konsulko.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/z3fold.c')
-rw-r--r--mm/z3fold.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/mm/z3fold.c b/mm/z3fold.c
index 867c590df027..83b5a3514427 100644
--- a/mm/z3fold.c
+++ b/mm/z3fold.c
@@ -297,9 +297,6 @@ static inline void free_handle(unsigned long handle, struct z3fold_header *zhdr)
int i;
bool is_free;
- if (handle & (1 << PAGE_HEADLESS))
- return;
-
if (WARN_ON(*(unsigned long *)handle == 0))
return;