From: Jonathan Lemon <jonathan.lemon@gmail•com>
To: <netdev@vger•kernel.org>
Subject: [PATCH 2/2 net-next] net: Use the __page_pool_return_page API
Date: Thu, 20 Dec 2018 14:21:33 -0800 [thread overview]
Message-ID: <20181220222133.1314092-2-jonathan.lemon@gmail.com> (raw)
In-Reply-To: <20181220222133.1314092-1-jonathan.lemon@gmail.com>
Use the __page_pool_return_page API instead of re-rolling our own.
Signed-off-by: Jonathan Lemon <jonathan.lemon@gmail•com>
---
net/core/page_pool.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/net/core/page_pool.c b/net/core/page_pool.c
index 364b893be66f..091007ff14a3 100644
--- a/net/core/page_pool.c
+++ b/net/core/page_pool.c
@@ -259,8 +259,7 @@ void __page_pool_put_page(struct page_pool *pool,
* doing refcnt based recycle tricks, meaning another process
* will be invoking put_page.
*/
- __page_pool_clean_page(pool, page);
- put_page(page);
+ __page_pool_return_page(pool, page);
}
EXPORT_SYMBOL(__page_pool_put_page);
--
2.17.1
next prev parent reply other threads:[~2018-12-20 22:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-20 22:21 [PATCH 1/2 net-next] net: Don't return pfmemalloc pages to the page pool Jonathan Lemon
2018-12-20 22:21 ` Jonathan Lemon [this message]
2019-01-05 15:46 ` Jesper Dangaard Brouer
2019-01-07 19:10 ` Jonathan Lemon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181220222133.1314092-2-jonathan.lemon@gmail.com \
--to=jonathan.lemon@gmail$(echo .)com \
--cc=netdev@vger$(echo .)kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox