mm/z3fold: remove unneeded page_mapcount_reset and ClearPagePrivate
authorMiaohe Lin <linmiaohe@huawei.com>
Fri, 29 Apr 2022 06:16:05 +0000 (23:16 -0700)
committerakpm <akpm@linux-foundation.org>
Fri, 29 Apr 2022 06:16:05 +0000 (23:16 -0700)
commit8ea2f86cea6ea9fad665c96431ce634e3284b7d0
treee4f5fae1625c2a898f0c00a19f758b35f40e0327
parented0e5dcab3a76782f20189e844e6aeb6110c0706
mm/z3fold: remove unneeded page_mapcount_reset and ClearPagePrivate

Page->page_type and PagePrivate are not used in z3fold.  We should remove
these confusing unneeded operations.  The z3fold do these here is due to
referring to zsmalloc's migration code which does need these operations.

Link: https://lkml.kernel.org/r/20220308134311.59086-5-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>
mm/z3fold.c