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.

SUNRPC: Remove redundant __GFP_NOWARN

GFP_NOWAIT already includes __GFP_NOWARN, so let's remove the redundant
__GFP_NOWARN.

Signed-off-by: Qianfeng Rong <rongqianfeng@vivo.com>
Acked-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>

authored by

Qianfeng Rong and committed by
Anna Schumaker
040058a8 301f3470

+2 -2
+1 -1
net/sunrpc/socklib.c
··· 86 86 /* ACL likes to be lazy in allocating pages - ACLs 87 87 * are small by default but can get huge. */ 88 88 if ((xdr->flags & XDRBUF_SPARSE_PAGES) && *ppage == NULL) { 89 - *ppage = alloc_page(GFP_NOWAIT | __GFP_NOWARN); 89 + *ppage = alloc_page(GFP_NOWAIT); 90 90 if (unlikely(*ppage == NULL)) { 91 91 if (copied == 0) 92 92 return -ENOMEM;
+1 -1
net/sunrpc/xprtrdma/rpc_rdma.c
··· 190 190 ppages = buf->pages + (buf->page_base >> PAGE_SHIFT); 191 191 while (len > 0) { 192 192 if (!*ppages) 193 - *ppages = alloc_page(GFP_NOWAIT | __GFP_NOWARN); 193 + *ppages = alloc_page(GFP_NOWAIT); 194 194 if (!*ppages) 195 195 return -ENOBUFS; 196 196 ppages++;