aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/swap.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/swap.h')
-rw-r--r--include/linux/swap.h7
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 *);
282extern swp_entry_t get_swap_page(void); 282extern swp_entry_t get_swap_page(void);
283extern swp_entry_t get_swap_page_of_type(int); 283extern swp_entry_t get_swap_page_of_type(int);
284extern int swap_duplicate(swp_entry_t); 284extern int swap_duplicate(swp_entry_t);
285extern int swapcache_prepare(swp_entry_t);
285extern int valid_swaphandles(swp_entry_t, unsigned long *); 286extern int valid_swaphandles(swp_entry_t, unsigned long *);
286extern void swap_free(swp_entry_t); 287extern void swap_free(swp_entry_t);
288extern void swapcache_free(swp_entry_t, struct page *page);
287extern int free_swap_and_cache(swp_entry_t); 289extern int free_swap_and_cache(swp_entry_t);
288extern int swap_type_of(dev_t, sector_t, struct block_device **); 290extern int swap_type_of(dev_t, sector_t, struct block_device **);
289extern unsigned int count_swap_pages(int, int); 291extern 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
356static inline void swap_free(swp_entry_t swp) 359static inline void swap_free(swp_entry_t swp)
357{ 360{
358} 361}
359 362
363static inline void swapcache_free(swp_entry_t swp, struct page *page)
364{
365}
366
360static inline struct page *swapin_readahead(swp_entry_t swp, gfp_t gfp_mask, 367static 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{