[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1590981765-22911-1-git-send-email-linmiaohe@huawei.com>
Date: Mon, 1 Jun 2020 11:22:45 +0800
From: linmiaohe <linmiaohe@...wei.com>
To: <akpm@...ux-foundation.org>, <hannes@...xchg.org>,
<mhocko@...e.com>, <minchan@...nel.org>, <ziqian.lzq@...fin.com>,
<yang.shi@...ux.alibaba.com>, <gustavo@...eddedor.com>,
<ying.huang@...el.com>
CC: <linux-kernel@...r.kernel.org>, <willy@...radead.org>,
<linmiaohe@...wei.com>
Subject: [PATCH RESEND] mm, swap: delete meaningless __add_to_swap_cache() declaration
From: Miaohe Lin <linmiaohe@...wei.com>
Since commit 8d93b41c09d1 ("mm: Convert add_to_swap_cache to XArray"),
__add_to_swap_cache and add_to_swap_cache are combined into one function.
There is no __add_to_swap_cache() anymore.
CC: Matthew Wilcox <willy@...radead.org>
Reviewed-by: "Huang, Ying" <ying.huang@...el.com>
Signed-off-by: Miaohe Lin <linmiaohe@...wei.com>
---
include/linux/swap.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/include/linux/swap.h b/include/linux/swap.h
index e1bbf7a16b27..d70e6017d835 100644
--- a/include/linux/swap.h
+++ b/include/linux/swap.h
@@ -408,7 +408,6 @@ extern unsigned long total_swapcache_pages(void);
extern void show_swap_cache_info(void);
extern int add_to_swap(struct page *page);
extern int add_to_swap_cache(struct page *, swp_entry_t, gfp_t);
-extern int __add_to_swap_cache(struct page *page, swp_entry_t entry);
extern void __delete_from_swap_cache(struct page *, swp_entry_t entry);
extern void delete_from_swap_cache(struct page *);
extern void free_page_and_swap_cache(struct page *);
--
2.19.1
Powered by blists - more mailing lists