frontswap: remove frontswap_test

frontswap_test is unused now, remove it.

Link: https://lkml.kernel.org/r/20211224062246.1258487-10-hch@lst.de
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Juergen Gross <jgross@suse.com>
Cc: Dan Streetman <ddstreet@ieee.org>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Hugh Dickins <hughd@google.com>
Cc: Konrad Rzeszutek Wilk <Konrad.wilk@oracle.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Seth Jennings <sjenning@redhat.com>
Cc: Vitaly Wool <vitaly.wool@konsulko.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by Christoph Hellwig and committed by Linus Torvalds bd9cd521 10a9c496

+1 -12
-11
include/linux/frontswap.h
··· 18 18 19 19 extern void frontswap_register_ops(struct frontswap_ops *ops); 20 20 21 - extern bool __frontswap_test(struct swap_info_struct *, pgoff_t); 22 21 extern void frontswap_init(unsigned type, unsigned long *map); 23 22 extern int __frontswap_store(struct page *page); 24 23 extern int __frontswap_load(struct page *page); ··· 30 31 static inline bool frontswap_enabled(void) 31 32 { 32 33 return static_branch_unlikely(&frontswap_enabled_key); 33 - } 34 - 35 - static inline bool frontswap_test(struct swap_info_struct *sis, pgoff_t offset) 36 - { 37 - return __frontswap_test(sis, offset); 38 34 } 39 35 40 36 static inline void frontswap_map_set(struct swap_info_struct *p, ··· 46 52 /* all inline routines become no-ops and all externs are ignored */ 47 53 48 54 static inline bool frontswap_enabled(void) 49 - { 50 - return false; 51 - } 52 - 53 - static inline bool frontswap_test(struct swap_info_struct *sis, pgoff_t offset) 54 55 { 55 56 return false; 56 57 }
+1 -1
mm/frontswap.c
··· 179 179 ops->init(type); 180 180 } 181 181 182 - bool __frontswap_test(struct swap_info_struct *sis, 182 + static bool __frontswap_test(struct swap_info_struct *sis, 183 183 pgoff_t offset) 184 184 { 185 185 if (sis->frontswap_map)