mm/zsmalloc.c: fix build when CONFIG_COMPACTION=n
Subsystems (2)
[email protected]
maintainerPATCH 2/7 mm/zsmalloc.c: fix build when CONFIG_COMPACTION=n
From: Andrew Morton <[email protected]>
Subject: mm/zsmalloc.c: fix build when CONFIG_COMPACTION=n
Fixes 701d678599d0c1 ("mm/zsmalloc.c: fix race condition in zs_destroy_pool")
Reported-by kbuild test robot <[email protected]>
Cc Sergey Senozhatsky <[email protected]>
Cc Henry Burns <[email protected]>
Cc Minchan Kim <[email protected]>
Cc Shakeel Butt <[email protected]>
Cc Jonathan Adams <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
mm/zsmalloc.c | 2 ++ 1 file changed, 2 insertions(+)
mm/zsmalloc.c renamed from mm/zsmalloc.c~mm-zsmallocc-fix-build-when-config_compaction=n +2 -0
@@ -2412,7 +2412,9 @@ struct zs_pool *zs_create_pool(const chaif (!pool->name) goto err; +#ifdef CONFIG_COMPACTION init_waitqueue_head (&pool->migration_wait); +#endif if (create_cache (pool)) goto err;
_