diff options
Diffstat (limited to 'include/linux/swap.h')
-rw-r--r-- | include/linux/swap.h | 12 |
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); | |||
302 | extern int swap_duplicate(swp_entry_t); | 302 | extern int swap_duplicate(swp_entry_t); |
303 | extern int valid_swaphandles(swp_entry_t, unsigned long *); | 303 | extern int valid_swaphandles(swp_entry_t, unsigned long *); |
304 | extern void swap_free(swp_entry_t); | 304 | extern void swap_free(swp_entry_t); |
305 | extern void free_swap_and_cache(swp_entry_t); | 305 | extern int free_swap_and_cache(swp_entry_t); |
306 | extern int swap_type_of(dev_t, sector_t, struct block_device **); | 306 | extern int swap_type_of(dev_t, sector_t, struct block_device **); |
307 | extern unsigned int count_swap_pages(int, int); | 307 | extern unsigned int count_swap_pages(int, int); |
308 | extern sector_t map_swap_page(struct swap_info_struct *, pgoff_t); | 308 | extern 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 | ||
355 | static 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 | |||
359 | static inline int swap_duplicate(swp_entry_t swp) | ||
360 | { | ||
361 | return 0; | ||
362 | } | ||
363 | 357 | ||
364 | static inline void swap_free(swp_entry_t swp) | 358 | static inline void swap_free(swp_entry_t swp) |
365 | { | 359 | { |