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

xarray: 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/20250804130018.484321-1-rongqianfeng@vivo.com
Signed-off-by: Qianfeng Rong <rongqianfeng@vivo.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Qianfeng Rong and committed by
Andrew Morton
9863124e 1097a3d4

+1 -1
+1 -1
lib/xarray.c
··· 370 370 if (node) { 371 371 xas->xa_alloc = NULL; 372 372 } else { 373 - gfp_t gfp = GFP_NOWAIT | __GFP_NOWARN; 373 + gfp_t gfp = GFP_NOWAIT; 374 374 375 375 if (xas->xa->xa_flags & XA_FLAGS_ACCOUNT) 376 376 gfp |= __GFP_ACCOUNT;