]> www.infradead.org Git - users/jedix/linux-maple.git/commit
docs/core-api: memory-allocation: GFP_NOWAIT doesn't need __GFP_NOWARN
authorDave Martin <Dave.Martin@arm.com>
Mon, 29 Jul 2024 14:01:27 +0000 (15:01 +0100)
committerJonathan Corbet <corbet@lwn.net>
Mon, 29 Jul 2024 21:10:25 +0000 (15:10 -0600)
commitb745fdeff5398b108bbd1f8df19eba8e4b33fe77
tree283888cf6309dcde01d5743c251251bdcb48a9a7
parent8400291e289ee6b2bf9779ff1c83a291501f017b
docs/core-api: memory-allocation: GFP_NOWAIT doesn't need __GFP_NOWARN

Since v6.8 the definition of GFP_NOWAIT has implied __GFP_NOWARN,
so it is now redundant to add this flag explicitly.

Update the docs to match, and emphasise the need for a fallback
when using GFP_NOWAIT.

Fixes: 16f5dfbc851b ("gfp: include __GFP_NOWARN in GFP_NOWAIT")
Signed-off-by: Dave Martin <Dave.Martin@arm.com>
Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Acked-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/20240729140127.244606-1-Dave.Martin@arm.com
Documentation/core-api/memory-allocation.rst