Subject: [PATCH 2/2 net-next] net: Use the __page_pool_return_page API

From: Jonathan Lemon <[email-masked]>
Date: Thu, 20 Dec 2018 14:21:33 -0800

Use the __page_pool_return_page API instead of re-rolling our own.

Signed-off-by: Jonathan Lemon <[email-masked]>
---
 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