Skip to content

Commit a854195

Browse files
qianfengrongtehcaster
authored andcommitted
maple_tree: remove redundant __GFP_NOWARN
Commit 16f5dfb ("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/[email protected] Signed-off-by: Qianfeng Rong <[email protected]> Reviewed-by: Wei Yang <[email protected]> Reviewed-by: Liam R. Howlett <[email protected]> Cc: Matthew Wilcox (Oracle) <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Vlastimil Babka <[email protected]>
1 parent 4ec1a08 commit a854195

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/maple_tree.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1344,11 +1344,11 @@ static void mas_node_count_gfp(struct ma_state *mas, int count, gfp_t gfp)
13441344
* @mas: The maple state
13451345
* @count: The number of nodes needed
13461346
*
1347-
* Note: Uses GFP_NOWAIT | __GFP_NOWARN for gfp flags.
1347+
* Note: Uses GFP_NOWAIT for gfp flags.
13481348
*/
13491349
static void mas_node_count(struct ma_state *mas, int count)
13501350
{
1351-
return mas_node_count_gfp(mas, count, GFP_NOWAIT | __GFP_NOWARN);
1351+
return mas_node_count_gfp(mas, count, GFP_NOWAIT);
13521352
}
13531353

13541354
/*

0 commit comments

Comments
 (0)