diff options
Diffstat (limited to 'include/linux/swap.h')
-rw-r--r-- | include/linux/swap.h | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/include/linux/swap.h b/include/linux/swap.h index 16fd1209e9fa..353153ea0bd5 100644 --- a/include/linux/swap.h +++ b/include/linux/swap.h | |||
@@ -220,11 +220,9 @@ extern struct address_space swapper_space; | |||
220 | #define total_swapcache_pages swapper_space.nrpages | 220 | #define total_swapcache_pages swapper_space.nrpages |
221 | extern void show_swap_cache_info(void); | 221 | extern void show_swap_cache_info(void); |
222 | extern int add_to_swap(struct page *, gfp_t); | 222 | extern int add_to_swap(struct page *, gfp_t); |
223 | extern int add_to_swap_cache(struct page *, swp_entry_t, gfp_t); | ||
223 | extern void __delete_from_swap_cache(struct page *); | 224 | extern void __delete_from_swap_cache(struct page *); |
224 | extern void delete_from_swap_cache(struct page *); | 225 | extern void delete_from_swap_cache(struct page *); |
225 | extern int move_to_swap_cache(struct page *, swp_entry_t); | ||
226 | extern int move_from_swap_cache(struct page *, unsigned long, | ||
227 | struct address_space *); | ||
228 | extern void free_page_and_swap_cache(struct page *); | 226 | extern void free_page_and_swap_cache(struct page *); |
229 | extern void free_pages_and_swap_cache(struct page **, int); | 227 | extern void free_pages_and_swap_cache(struct page **, int); |
230 | extern struct page *lookup_swap_cache(swp_entry_t); | 228 | extern struct page *lookup_swap_cache(swp_entry_t); |
@@ -319,15 +317,10 @@ static inline struct page *lookup_swap_cache(swp_entry_t swp) | |||
319 | 317 | ||
320 | #define can_share_swap_page(p) (page_mapcount(p) == 1) | 318 | #define can_share_swap_page(p) (page_mapcount(p) == 1) |
321 | 319 | ||
322 | static inline int move_to_swap_cache(struct page *page, swp_entry_t entry) | 320 | static inline int add_to_swap_cache(struct page *page, swp_entry_t entry, |
321 | gfp_t gfp_mask) | ||
323 | { | 322 | { |
324 | return 1; | 323 | return -1; |
325 | } | ||
326 | |||
327 | static inline int move_from_swap_cache(struct page *page, unsigned long index, | ||
328 | struct address_space *mapping) | ||
329 | { | ||
330 | return 1; | ||
331 | } | 324 | } |
332 | 325 | ||
333 | static inline void __delete_from_swap_cache(struct page *page) | 326 | static inline void __delete_from_swap_cache(struct page *page) |