]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mm/page_alloc: explicitly record high-order atomic allocations in alloc_flags
authorMel Gorman <mgorman@techsingularity.net>
Fri, 13 Jan 2023 11:12:14 +0000 (11:12 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Nov 2024 15:25:55 +0000 (16:25 +0100)
commit17dedfd6de69a2263a2a5b414ad57eaf5176e060
treeb51e64fbd6044c7add3d80bbfa8208ea69839307
parent9da195a2d35b7631c59b80fcc58aeec67e3d1385
mm/page_alloc: explicitly record high-order atomic allocations in alloc_flags

[ Upstream commit eb2e2b425c6984ca8034448a3f2c680622bd3d4d ]

A high-order ALLOC_HARDER allocation is assumed to be atomic.  While that
is accurate, it changes later in the series.  In preparation, explicitly
record high-order atomic allocations in gfp_to_alloc_flags().

Link: https://lkml.kernel.org/r/20230113111217.14134-4-mgorman@techsingularity.net
Signed-off-by: Mel Gorman <mgorman@techsingularity.net>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: NeilBrown <neilb@suse.de>
Cc: Thierry Reding <thierry.reding@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Stable-dep-of: 281dd25c1a01 ("mm/page_alloc: let GFP_ATOMIC order-0 allocs access highatomic reserves")
Signed-off-by: Sasha Levin <sashal@kernel.org>
mm/internal.h
mm/page_alloc.c