From: Miaohe Lin Date: Fri, 29 Apr 2022 06:16:06 +0000 (-0700) Subject: mm/z3fold: remove unneeded PAGE_HEADLESS check in free_handle() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=daf79bd8ee1c8187c133c77a82943ae50994bb66;p=linux.git 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 Reviewed-by: Vitaly Wool Signed-off-by: Andrew Morton --- diff --git a/mm/z3fold.c b/mm/z3fold.c index 867c590df027e..83b5a3514427e 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;