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

Configure Feed

Select the types of activity you want to include in your feed.

virtio_balloon: 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.

Signed-off-by: Qianfeng Rong <rongqianfeng@vivo.com>
Message-Id: <20250807132643.546237-1-rongqianfeng@vivo.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>

authored by

Qianfeng Rong and committed by
Michael S. Tsirkin
642d82e3 c0e11161

+1 -1
+1 -1
drivers/virtio/virtio_balloon.c
··· 205 205 unsigned int unused, err; 206 206 207 207 /* We should always be able to add these buffers to an empty queue. */ 208 - err = virtqueue_add_inbuf(vq, sg, nents, vb, GFP_NOWAIT | __GFP_NOWARN); 208 + err = virtqueue_add_inbuf(vq, sg, nents, vb, GFP_NOWAIT); 209 209 210 210 /* 211 211 * In the extremely unlikely case that something has occurred and we