]> www.infradead.org Git - users/jedix/linux-maple.git/commit
gfp: include __GFP_NOWARN in GFP_NOWAIT
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 9 Nov 2023 21:15:07 +0000 (21:15 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 20 Nov 2023 21:16:32 +0000 (13:16 -0800)
commitb214df55faba4795105572d6a0ea1cc49c1e4504
tree1cdc8044a64b438f19efe7ab6fdecbba369ed072
parent32a2e62ba7343423d6626109ea9532368458dd49
gfp: include __GFP_NOWARN in GFP_NOWAIT

GFP_NOWAIT callers are always prepared for their allocations to fail
because they fail so frequently.  Forcing the callers to remember to add
__GFP_NOWARN is just annoying and leads to an endless stream of patches
for the places where we forgot to add it.

We can now remove __GFP_NOWARN from all the callers which specify
GFP_NOWAIT, but I'd rather wait a cycle and send patches to each
maintainer instead of creating a big pile of merge conflicts.

Link: https://lkml.kernel.org/r/20231109211507.2262419-1-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/gfp_types.h