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.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/include/linux/swap.h b/include/linux/swap.h
index cbf7fbed3dfd..91dee50fe260 100644
--- a/include/linux/swap.h
+++ b/include/linux/swap.h
@@ -302,7 +302,7 @@ extern swp_entry_t get_swap_page_of_type(int);
302extern int swap_duplicate(swp_entry_t); 302extern int swap_duplicate(swp_entry_t);
303extern int valid_swaphandles(swp_entry_t, unsigned long *); 303extern int valid_swaphandles(swp_entry_t, unsigned long *);
304extern void swap_free(swp_entry_t); 304extern void swap_free(swp_entry_t);
305extern void free_swap_and_cache(swp_entry_t); 305extern int free_swap_and_cache(swp_entry_t);
306extern int swap_type_of(dev_t, sector_t, struct block_device **); 306extern int swap_type_of(dev_t, sector_t, struct block_device **);
307extern unsigned int count_swap_pages(int, int); 307extern unsigned int count_swap_pages(int, int);
308extern sector_t map_swap_page(struct swap_info_struct *, pgoff_t); 308extern sector_t map_swap_page(struct swap_info_struct *, pgoff_t);
@@ -352,14 +352,8 @@ static inline void show_swap_cache_info(void)
352{ 352{
353} 353}
354 354
355static inline void free_swap_and_cache(swp_entry_t swp) 355#define free_swap_and_cache(swp) is_migration_entry(swp)
356{ 356#define swap_duplicate(swp) is_migration_entry(swp)
357}
358
359static inline int swap_duplicate(swp_entry_t swp)
360{
361 return 0;
362}
363 357
364static inline void swap_free(swp_entry_t swp) 358static inline void swap_free(swp_entry_t swp)
365{ 359{