[PATCH v2 3/4] mm/page_alloc: fixup alloc_pages_nolock_noprof() comment

From: Brendan Jackman

Date: Tue Jul 14 2026 - 05:33:04 EST


Update the comment to reflect the recent change to allow flags in
gfp_nolock.

Reported-by: sashiko-bot@xxxxxxxxxx
Link: https://sashiko.dev/#/patchset/20260703-alloc-trylock-v5-0-c87b714e19d3@xxxxxxxxxx
Signed-off-by: Brendan Jackman <jackmanb@xxxxxxxxxx>
---
mm/page_alloc.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index f3f08d0313cfc..d53f858e518f7 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -7994,7 +7994,8 @@ struct page *alloc_frozen_pages_nolock_noprof(gfp_t gfp_flags, int nid, unsigned
}
/**
* alloc_pages_nolock - opportunistic reentrant allocation from any context
- * @gfp_flags: GFP flags. Only __GFP_ACCOUNT allowed.
+ * @gfp_flags: GFP flags. Only __GFP_ACCOUNT, plus some flags that get set
+ * internally regardless (see @gfp_nolock) are allowed.
* @nid: node to allocate from
* @order: allocation order size
*

--
2.54.0