mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:04:41 +01:00
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>
This commit is contained in:
parent
301f347027
commit
040058a8f7
2 changed files with 2 additions and 2 deletions
|
|
@ -86,7 +86,7 @@ xdr_partial_copy_from_skb(struct xdr_buf *xdr, struct xdr_skb_reader *desc)
|
|||
/* ACL likes to be lazy in allocating pages - ACLs
|
||||
* are small by default but can get huge. */
|
||||
if ((xdr->flags & XDRBUF_SPARSE_PAGES) && *ppage == NULL) {
|
||||
*ppage = alloc_page(GFP_NOWAIT | __GFP_NOWARN);
|
||||
*ppage = alloc_page(GFP_NOWAIT);
|
||||
if (unlikely(*ppage == NULL)) {
|
||||
if (copied == 0)
|
||||
return -ENOMEM;
|
||||
|
|
|
|||
|
|
@ -190,7 +190,7 @@ rpcrdma_alloc_sparse_pages(struct xdr_buf *buf)
|
|||
ppages = buf->pages + (buf->page_base >> PAGE_SHIFT);
|
||||
while (len > 0) {
|
||||
if (!*ppages)
|
||||
*ppages = alloc_page(GFP_NOWAIT | __GFP_NOWARN);
|
||||
*ppages = alloc_page(GFP_NOWAIT);
|
||||
if (!*ppages)
|
||||
return -ENOBUFS;
|
||||
ppages++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue