hulk inclusion category: bugfix bugzilla: https://atomgit.com/openeuler/kernel/issues/9186 ------------------------------------------ There is no need to enable userswap. Remote the boot param to make sure it can not be enable. Fixes: af2100e24d47 ("mm/userswap: add enable_userswap boot option") Signed-off-by: Wupeng Ma <mawupeng1@huawei.com> --- mm/userswap.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/mm/userswap.c b/mm/userswap.c index 22e3f147ce5f9..3f5b93c5b8d63 100644 --- a/mm/userswap.c +++ b/mm/userswap.c @@ -547,10 +547,3 @@ int mfill_atomic_pte_nocopy(struct mm_struct *mm, pmd_t *dst_pmd, put_page(page); return ret; } - -static int __init enable_userswap_setup(char *str) -{ - static_branch_enable(&userswap_enabled); - return 1; -} -__setup("enable_userswap", enable_userswap_setup); -- 2.43.0