diff options
Diffstat (limited to 'include/linux/swap.h')
-rw-r--r-- | include/linux/swap.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/swap.h b/include/linux/swap.h index 0a4cd4703f40..ad220359f1b0 100644 --- a/include/linux/swap.h +++ b/include/linux/swap.h | |||
@@ -418,7 +418,7 @@ extern sector_t swapdev_block(int, pgoff_t); | |||
418 | extern int page_swapcount(struct page *); | 418 | extern int page_swapcount(struct page *); |
419 | extern int swp_swapcount(swp_entry_t entry); | 419 | extern int swp_swapcount(swp_entry_t entry); |
420 | extern struct swap_info_struct *page_swap_info(struct page *); | 420 | extern struct swap_info_struct *page_swap_info(struct page *); |
421 | extern int reuse_swap_page(struct page *); | 421 | extern bool reuse_swap_page(struct page *, int *); |
422 | extern int try_to_free_swap(struct page *); | 422 | extern int try_to_free_swap(struct page *); |
423 | struct backing_dev_info; | 423 | struct backing_dev_info; |
424 | 424 | ||
@@ -513,8 +513,8 @@ static inline int swp_swapcount(swp_entry_t entry) | |||
513 | return 0; | 513 | return 0; |
514 | } | 514 | } |
515 | 515 | ||
516 | #define reuse_swap_page(page) \ | 516 | #define reuse_swap_page(page, total_mapcount) \ |
517 | (!PageTransCompound(page) && page_mapcount(page) == 1) | 517 | (page_trans_huge_mapcount(page, total_mapcount) == 1) |
518 | 518 | ||
519 | static inline int try_to_free_swap(struct page *page) | 519 | static inline int try_to_free_swap(struct page *page) |
520 | { | 520 | { |