summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mm/zcache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/zcache.c b/mm/zcache.c
index 2b06451b8a82..e41cbb222607 100644
--- a/mm/zcache.c
+++ b/mm/zcache.c
@@ -73,7 +73,8 @@ static u64 zcache_pool_shrink_pages;
static atomic_t zcache_stored_pages = ATOMIC_INIT(0);
#define GFP_ZCACHE \
- (__GFP_FS | __GFP_NORETRY | __GFP_NOWARN | __GFP_NOMEMALLOC)
+ (__GFP_FS | __GFP_NORETRY | __GFP_NOWARN | \
+ __GFP_NOMEMALLOC | __GFP_NO_KSWAPD)
/*
* Zcache receives pages for compression through the Cleancache API and is able
* to evict pages from its own compressed pool on an LRU basis in the case that