diff options
Diffstat (limited to 'include/linux/swap.h')
-rw-r--r-- | include/linux/swap.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/swap.h b/include/linux/swap.h index f30c06908f09..259e96c150ef 100644 --- a/include/linux/swap.h +++ b/include/linux/swap.h | |||
@@ -282,8 +282,10 @@ extern void si_swapinfo(struct sysinfo *); | |||
282 | extern swp_entry_t get_swap_page(void); | 282 | extern swp_entry_t get_swap_page(void); |
283 | extern swp_entry_t get_swap_page_of_type(int); | 283 | extern swp_entry_t get_swap_page_of_type(int); |
284 | extern int swap_duplicate(swp_entry_t); | 284 | extern int swap_duplicate(swp_entry_t); |
285 | extern int swapcache_prepare(swp_entry_t); | ||
285 | extern int valid_swaphandles(swp_entry_t, unsigned long *); | 286 | extern int valid_swaphandles(swp_entry_t, unsigned long *); |
286 | extern void swap_free(swp_entry_t); | 287 | extern void swap_free(swp_entry_t); |
288 | extern void swapcache_free(swp_entry_t, struct page *page); | ||
287 | extern int free_swap_and_cache(swp_entry_t); | 289 | extern int free_swap_and_cache(swp_entry_t); |
288 | extern int swap_type_of(dev_t, sector_t, struct block_device **); | 290 | extern int swap_type_of(dev_t, sector_t, struct block_device **); |
289 | extern unsigned int count_swap_pages(int, int); | 291 | extern unsigned int count_swap_pages(int, int); |
@@ -352,11 +354,16 @@ static inline void show_swap_cache_info(void) | |||
352 | 354 | ||
353 | #define free_swap_and_cache(swp) is_migration_entry(swp) | 355 | #define free_swap_and_cache(swp) is_migration_entry(swp) |
354 | #define swap_duplicate(swp) is_migration_entry(swp) | 356 | #define swap_duplicate(swp) is_migration_entry(swp) |
357 | #define swapcache_prepare(swp) is_migration_entry(swp) | ||
355 | 358 | ||
356 | static inline void swap_free(swp_entry_t swp) | 359 | static inline void swap_free(swp_entry_t swp) |
357 | { | 360 | { |
358 | } | 361 | } |
359 | 362 | ||
363 | static inline void swapcache_free(swp_entry_t swp, struct page *page) | ||
364 | { | ||
365 | } | ||
366 | |||
360 | static inline struct page *swapin_readahead(swp_entry_t swp, gfp_t gfp_mask, | 367 | static inline struct page *swapin_readahead(swp_entry_t swp, gfp_t gfp_mask, |
361 | struct vm_area_struct *vma, unsigned long addr) | 368 | struct vm_area_struct *vma, unsigned long addr) |
362 | { | 369 | { |