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

Merge branch 'net-remove-redundant-__gfp_nowarn'

Qianfeng Rong says:

====================
net: remove redundant __GFP_NOWARN (part)

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://patch.msgid.link/20250810072944.438574-1-rongqianfeng@vivo.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

+2 -2
+1 -1
net/ipv4/tcp_cdg.c
··· 379 379 /* We silently fall back to window = 1 if allocation fails. */ 380 380 if (window > 1) 381 381 ca->gradients = kcalloc(window, sizeof(ca->gradients[0]), 382 - GFP_NOWAIT | __GFP_NOWARN); 382 + GFP_NOWAIT); 383 383 ca->rtt_seq = tp->snd_nxt; 384 384 ca->shadow_wnd = tcp_snd_cwnd(tp); 385 385 }
+1 -1
net/rds/ib_recv.c
··· 1034 1034 rds_ib_stats_inc(s_ib_rx_ring_empty); 1035 1035 1036 1036 if (rds_ib_ring_low(&ic->i_recv_ring)) { 1037 - rds_ib_recv_refill(conn, 0, GFP_NOWAIT | __GFP_NOWARN); 1037 + rds_ib_recv_refill(conn, 0, GFP_NOWAIT); 1038 1038 rds_ib_stats_inc(s_ib_rx_refill_from_cq); 1039 1039 } 1040 1040 }