]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/page_alloc: warn on nr_reserved_highatomic underflow
authorBrendan Jackman <jackmanb@google.com>
Tue, 25 Feb 2025 18:45:09 +0000 (18:45 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 28 Feb 2025 01:00:33 +0000 (17:00 -0800)
commitbe1028d3aeaec27fdeb38b187e03d8ae868a049d
tree3312c7f372d5fc922b9d7b3a0d40b23968d63d52
parent6a78730176fd0c558661e680999a0e141c037958
mm/page_alloc: warn on nr_reserved_highatomic underflow

As documented in the comment this underflow should not happen.  The
locking has indeed changed here since the comment was written, see the
migratetype hygiene patches[0].  However, those changes made the locking
_safer_, so the underflow _really_ shouldn't happen now.  So upgrade the
comment to a warning.

[0] https://lore.kernel.org/all/20240320180429.678181-7-hannes@cmpxchg.org/T/#m3da87e6cc3348a4640aa298137bc9f8f61b76c84

Link: https://lkml.kernel.org/r/20250225-warn-underflow-v1-1-3dc542941d3a@google.com
Signed-off-by: Brendan Jackman <jackmanb@google.com>
Reviewed-by: Vlastimil Babka <vbabka@suse.cz>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_alloc.c