Skip to content

Commit 040058a

Browse files
qianfengrongAnna Schumaker
authored andcommitted
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>
1 parent 301f347 commit 040058a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

net/sunrpc/socklib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ xdr_partial_copy_from_skb(struct xdr_buf *xdr, struct xdr_skb_reader *desc)
8686
/* ACL likes to be lazy in allocating pages - ACLs
8787
* are small by default but can get huge. */
8888
if ((xdr->flags & XDRBUF_SPARSE_PAGES) && *ppage == NULL) {
89-
*ppage = alloc_page(GFP_NOWAIT | __GFP_NOWARN);
89+
*ppage = alloc_page(GFP_NOWAIT);
9090
if (unlikely(*ppage == NULL)) {
9191
if (copied == 0)
9292
return -ENOMEM;

net/sunrpc/xprtrdma/rpc_rdma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ rpcrdma_alloc_sparse_pages(struct xdr_buf *buf)
190190
ppages = buf->pages + (buf->page_base >> PAGE_SHIFT);
191191
while (len > 0) {
192192
if (!*ppages)
193-
*ppages = alloc_page(GFP_NOWAIT | __GFP_NOWARN);
193+
*ppages = alloc_page(GFP_NOWAIT);
194194
if (!*ppages)
195195
return -ENOBUFS;
196196
ppages++;

0 commit comments

Comments
 (0)