diff options
Diffstat (limited to 'include/linux/swap.h')
| -rw-r--r-- | include/linux/swap.h | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/include/linux/swap.h b/include/linux/swap.h index a1a3f4ed94ce..fa92177d863e 100644 --- a/include/linux/swap.h +++ b/include/linux/swap.h | |||
| @@ -424,12 +424,8 @@ extern struct page *__read_swap_cache_async(swp_entry_t, gfp_t, | |||
| 424 | bool *new_page_allocated); | 424 | bool *new_page_allocated); |
| 425 | extern struct page *swapin_readahead(swp_entry_t, gfp_t, | 425 | extern struct page *swapin_readahead(swp_entry_t, gfp_t, |
| 426 | struct vm_area_struct *vma, unsigned long addr); | 426 | struct vm_area_struct *vma, unsigned long addr); |
| 427 | |||
| 428 | extern struct page *swap_readahead_detect(struct vm_fault *vmf, | ||
| 429 | struct vma_swap_readahead *swap_ra); | ||
| 430 | extern struct page *do_swap_page_readahead(swp_entry_t fentry, gfp_t gfp_mask, | 427 | extern struct page *do_swap_page_readahead(swp_entry_t fentry, gfp_t gfp_mask, |
| 431 | struct vm_fault *vmf, | 428 | struct vm_fault *vmf); |
| 432 | struct vma_swap_readahead *swap_ra); | ||
| 433 | 429 | ||
| 434 | /* linux/mm/swapfile.c */ | 430 | /* linux/mm/swapfile.c */ |
| 435 | extern atomic_long_t nr_swap_pages; | 431 | extern atomic_long_t nr_swap_pages; |
| @@ -548,15 +544,8 @@ static inline bool swap_use_vma_readahead(void) | |||
| 548 | return false; | 544 | return false; |
| 549 | } | 545 | } |
| 550 | 546 | ||
| 551 | static inline struct page *swap_readahead_detect( | 547 | static inline struct page *do_swap_page_readahead(swp_entry_t fentry, |
| 552 | struct vm_fault *vmf, struct vma_swap_readahead *swap_ra) | 548 | gfp_t gfp_mask, struct vm_fault *vmf) |
| 553 | { | ||
| 554 | return NULL; | ||
| 555 | } | ||
| 556 | |||
| 557 | static inline struct page *do_swap_page_readahead( | ||
| 558 | swp_entry_t fentry, gfp_t gfp_mask, | ||
| 559 | struct vm_fault *vmf, struct vma_swap_readahead *swap_ra) | ||
| 560 | { | 549 | { |
| 561 | return NULL; | 550 | return NULL; |
| 562 | } | 551 | } |
