From 9df4758a25454f0fb2876190bc6c9988bf36e3c6 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Wed, 24 Aug 2022 10:26:44 -0700 Subject: [PATCH] mm-page_alloc-fix-race-condition-between-build_all_zonelists-and-page-allocation-fix make zonelist_update_seq static Cc: David Hildenbrand Cc: Mel Gorman Cc: Michal Hocko Cc: Patrick Daly Signed-off-by: Andrew Morton --- mm/page_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 6345011607e3..1678431fb4c4 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -4714,7 +4714,7 @@ EXPORT_SYMBOL_GPL(fs_reclaim_release); * retries the allocation if zonelist changes. Writer side is protected by the * embedded spin_lock. */ -DEFINE_SEQLOCK(zonelist_update_seq); +static DEFINE_SEQLOCK(zonelist_update_seq); static unsigned int zonelist_iter_begin(void) { -- 2.50.1