Skip to contentSkip to conversation

mm, swap: delete meaningless __add_to_swap_cache() declaration

PATCH RESEND New linmiaohe 1 participant 1 message Jun 1, 2020 MM swap

lore
Share & tools
lore

linmiaohe

author
#0 lore raw

PATCH RESEND 1/1 mm, swap: delete meaningless __add_to_swap_cache() declaration

From: Miaohe Lin <[email protected]>

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.

---
 include/linux/swap.h | 1 -
 1 file changed, 1 deletion(-)
include/linux/swap.h +0 -1
index e1bbf7a16b27..d70e6017d835 100644
@@ -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 *);
Signature · 1 line
2.19.1