From c6e56fd83f1e1a21ef713560c41ee0012ea05f3b Mon Sep 17 00:00:00 2001 From: Diep Quynh Date: Tue, 12 May 2020 22:18:20 +0700 Subject: [PATCH] zsmalloc: Remove Samsung hacks Signed-off-by: Diep Quynh --- mm/zsmalloc.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index 276a5e9a9..f105de9e0 100644 --- a/mm/zsmalloc.c +++ b/mm/zsmalloc.c @@ -175,12 +175,6 @@ static struct dentry *zs_stat_root; static struct vfsmount *zsmalloc_mnt; #endif -#ifdef CONFIG_ZSWAP_MIGRATION_SUPPORT -static int zs_page_migration_enabled = 1; -#else -static int zs_page_migration_enabled; -#endif - /* * We assign a page to ZS_ALMOST_EMPTY fullness group when: * n <= N / f, where @@ -1988,9 +1982,6 @@ static bool zs_page_isolate(struct page *page, isolate_mode_t mode) * Page is locked so zspage couldn't be destroyed. For detail, look at * lock_zspage in free_zspage. */ - if (!zs_page_migration_enabled) - return false; - VM_BUG_ON_PAGE(!PageMovable(page), page); VM_BUG_ON_PAGE(PageIsolated(page), page);