aboutsummaryrefslogtreecommitdiffstats
path: root/mm/filemap.c
diff options
context:
space:
mode:
authorKirill A. Shutemov <[email protected]>2025-03-10 08:28:55 +0000
committerAndrew Morton <[email protected]>2025-03-17 00:40:26 +0000
commit800f1059c99e2b39899bdc67a7593a7bea6375d8 (patch)
tree3b96debff9db612f2a683bdb7918fddfcc14385c /mm/filemap.c
parentmm: decline to manipulate the refcount on a slab page (diff)
downloadkernel-800f1059c99e2b39899bdc67a7593a7bea6375d8.tar.gz
kernel-800f1059c99e2b39899bdc67a7593a7bea6375d8.zip
mm/page_alloc: fix memory accept before watermarks gets initialized
Watermarks are initialized during the postcore initcall. Until then, all watermarks are set to zero. This causes cond_accept_memory() to incorrectly skip memory acceptance because a watermark of 0 is always met. This can lead to a premature OOM on boot. To ensure progress, accept one MAX_ORDER page if the watermark is zero. Link: https://lkml.kernel.org/r/[email protected] Fixes: dcdfdd40fa82 ("mm: Add support for unaccepted memory") Signed-off-by: Kirill A. Shutemov <[email protected]> Tested-by: Farrah Chen <[email protected]> Reported-by: Farrah Chen <[email protected]> Acked-by: Vlastimil Babka <[email protected]> Reviewed-by: Pankaj Gupta <[email protected]> Cc: Ashish Kalra <[email protected]> Cc: David Hildenbrand <[email protected]> Cc: "Edgecombe, Rick P" <[email protected]> Cc: Mel Gorman <[email protected]> Cc: "Mike Rapoport (IBM)" <[email protected]> Cc: Thomas Lendacky <[email protected]> Cc: <[email protected]> [6.5+] Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'mm/filemap.c')
0 files changed, 0 insertions, 0 deletions