summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mm/zsmalloc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c
index ad8a34bd15ca..5a50ad517f0f 100644
--- a/mm/zsmalloc.c
+++ b/mm/zsmalloc.c
@@ -2488,7 +2488,9 @@ struct zs_pool *zs_create_pool(const char *name)
if (!pool->name)
goto err;
+#ifdef CONFIG_COMPACTION
init_waitqueue_head(&pool->migration_wait);
+#endif
if (create_cache(pool))
goto err;