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/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>
1 parent 4ec1a08 commit a854195

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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)