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.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/include/linux/swap.h b/include/linux/swap.h
index 366556c5b148..c3ecd478840e 100644
--- a/include/linux/swap.h
+++ b/include/linux/swap.h
@@ -305,8 +305,7 @@ extern sector_t map_swap_page(struct swap_info_struct *, pgoff_t);
305extern sector_t swapdev_block(int, pgoff_t); 305extern sector_t swapdev_block(int, pgoff_t);
306extern struct swap_info_struct *get_swap_info_struct(unsigned); 306extern struct swap_info_struct *get_swap_info_struct(unsigned);
307extern int reuse_swap_page(struct page *); 307extern int reuse_swap_page(struct page *);
308extern int remove_exclusive_swap_page(struct page *); 308extern int try_to_free_swap(struct page *);
309extern int remove_exclusive_swap_page_ref(struct page *);
310struct backing_dev_info; 309struct backing_dev_info;
311 310
312/* linux/mm/thrash.c */ 311/* linux/mm/thrash.c */
@@ -388,12 +387,7 @@ static inline void delete_from_swap_cache(struct page *page)
388 387
389#define reuse_swap_page(page) (page_mapcount(page) == 1) 388#define reuse_swap_page(page) (page_mapcount(page) == 1)
390 389
391static inline int remove_exclusive_swap_page(struct page *p) 390static inline int try_to_free_swap(struct page *page)
392{
393 return 0;
394}
395
396static inline int remove_exclusive_swap_page_ref(struct page *page)
397{ 391{
398 return 0; 392 return 0;
399} 393}