Re: [PATCH v2] mm: remove redundant __GFP_NOWARN

From: Qianfeng Rong
Date: Tue Aug 12 2025 - 22:26:11 EST



在 2025/8/13 0:46, Lorenzo Stoakes 写道:
On Tue, Aug 12, 2025 at 09:52:25PM +0800, Qianfeng Rong wrote:
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.

Reviewed-by: Harry Yoo <harry.yoo@xxxxxxxxxx>
Signed-off-by: Qianfeng Rong <rongqianfeng@xxxxxxxx>
LGTM, I wonder if there are other such redundancies in the kernel?
For similar redundancies in other subsystems, I submitted separate patches
to minimize potential merge conflicts.

Best regards,
Qianfeng

Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@xxxxxxxxxx>