File tree Expand file tree Collapse file tree 2 files changed +1
-12
lines changed Expand file tree Collapse file tree 2 files changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ struct frontswap_ops {
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 );
@@ -33,11 +32,6 @@ static inline bool frontswap_enabled(void)
33
32
return static_branch_unlikely (& frontswap_enabled_key );
34
33
}
35
34
36
- static inline bool frontswap_test (struct swap_info_struct * sis , pgoff_t offset )
37
- {
38
- return __frontswap_test (sis , offset );
39
- }
40
-
41
35
static inline void frontswap_map_set (struct swap_info_struct * p ,
42
36
unsigned long * map )
43
37
{
@@ -56,11 +50,6 @@ static inline bool frontswap_enabled(void)
56
50
return false;
57
51
}
58
52
59
- static inline bool frontswap_test (struct swap_info_struct * sis , pgoff_t offset )
60
- {
61
- return false;
62
- }
63
-
64
53
static inline void frontswap_map_set (struct swap_info_struct * p ,
65
54
unsigned long * map )
66
55
{
Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ void frontswap_init(unsigned type, unsigned long *map)
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 )
You can’t perform that action at this time.
0 commit comments