Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

maple_tree: remove redundant __GFP_NOWARN

Commit 16f5dfbc851b ("gfp: include __GFP_NOWARN in GFP_NOWAIT") made
GFP_NOWAIT implicitly include __GFP_NOWARN.

Therefore, explicit __GFP_NOWARN combined with GFP_NOWAIT (e.g.,
`GFP_NOWAIT | __GFP_NOWARN`) is now redundant. Let's clean up these
redundant flags across subsystems.

No functional changes.

Link: https://lkml.kernel.org/r/20250804125657.482109-1-rongqianfeng@vivo.com
Signed-off-by: Qianfeng Rong <rongqianfeng@vivo.com>
Reviewed-by: Wei Yang <richard.weiyang@gmail.com>
Reviewed-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>

authored by

Qianfeng Rong and committed by
Vlastimil Babka
a8541957 4ec1a08d

+2 -2
+2 -2
lib/maple_tree.c
··· 1344 1344 * @mas: The maple state 1345 1345 * @count: The number of nodes needed 1346 1346 * 1347 - * Note: Uses GFP_NOWAIT | __GFP_NOWARN for gfp flags. 1347 + * Note: Uses GFP_NOWAIT for gfp flags. 1348 1348 */ 1349 1349 static void mas_node_count(struct ma_state *mas, int count) 1350 1350 { 1351 - return mas_node_count_gfp(mas, count, GFP_NOWAIT | __GFP_NOWARN); 1351 + return mas_node_count_gfp(mas, count, GFP_NOWAIT); 1352 1352 } 1353 1353 1354 1354 /*