Commit bd9cd521 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Linus Torvalds

frontswap: remove frontswap_test

frontswap_test is unused now, remove it.

Link: https://lkml.kernel.org/r/20211224062246.1258487-10-hch@lst.deSigned-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarJuergen 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: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 10a9c496
...@@ -18,7 +18,6 @@ struct frontswap_ops { ...@@ -18,7 +18,6 @@ struct frontswap_ops {
extern void frontswap_register_ops(struct frontswap_ops *ops); extern void frontswap_register_ops(struct frontswap_ops *ops);
extern bool __frontswap_test(struct swap_info_struct *, pgoff_t);
extern void frontswap_init(unsigned type, unsigned long *map); extern void frontswap_init(unsigned type, unsigned long *map);
extern int __frontswap_store(struct page *page); extern int __frontswap_store(struct page *page);
extern int __frontswap_load(struct page *page); extern int __frontswap_load(struct page *page);
...@@ -33,11 +32,6 @@ static inline bool frontswap_enabled(void) ...@@ -33,11 +32,6 @@ static inline bool frontswap_enabled(void)
return static_branch_unlikely(&frontswap_enabled_key); return static_branch_unlikely(&frontswap_enabled_key);
} }
static inline bool frontswap_test(struct swap_info_struct *sis, pgoff_t offset)
{
return __frontswap_test(sis, offset);
}
static inline void frontswap_map_set(struct swap_info_struct *p, static inline void frontswap_map_set(struct swap_info_struct *p,
unsigned long *map) unsigned long *map)
{ {
...@@ -56,11 +50,6 @@ static inline bool frontswap_enabled(void) ...@@ -56,11 +50,6 @@ static inline bool frontswap_enabled(void)
return false; return false;
} }
static inline bool frontswap_test(struct swap_info_struct *sis, pgoff_t offset)
{
return false;
}
static inline void frontswap_map_set(struct swap_info_struct *p, static inline void frontswap_map_set(struct swap_info_struct *p,
unsigned long *map) unsigned long *map)
{ {
......
...@@ -179,7 +179,7 @@ void frontswap_init(unsigned type, unsigned long *map) ...@@ -179,7 +179,7 @@ void frontswap_init(unsigned type, unsigned long *map)
ops->init(type); ops->init(type);
} }
bool __frontswap_test(struct swap_info_struct *sis, static bool __frontswap_test(struct swap_info_struct *sis,
pgoff_t offset) pgoff_t offset)
{ {
if (sis->frontswap_map) if (sis->frontswap_map)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment