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.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/swap.h b/include/linux/swap.h
index ff4acea9bbdb..91c9d3fc8513 100644
--- a/include/linux/swap.h
+++ b/include/linux/swap.h
@@ -316,7 +316,6 @@ extern long nr_swap_pages;
316extern long total_swap_pages; 316extern long total_swap_pages;
317extern void si_swapinfo(struct sysinfo *); 317extern void si_swapinfo(struct sysinfo *);
318extern swp_entry_t get_swap_page(void); 318extern swp_entry_t get_swap_page(void);
319extern swp_entry_t get_swap_page_of_type(int);
320extern int valid_swaphandles(swp_entry_t, unsigned long *); 319extern int valid_swaphandles(swp_entry_t, unsigned long *);
321extern int add_swap_count_continuation(swp_entry_t, gfp_t); 320extern int add_swap_count_continuation(swp_entry_t, gfp_t);
322extern void swap_shmem_alloc(swp_entry_t); 321extern void swap_shmem_alloc(swp_entry_t);
@@ -333,6 +332,13 @@ extern int reuse_swap_page(struct page *);
333extern int try_to_free_swap(struct page *); 332extern int try_to_free_swap(struct page *);
334struct backing_dev_info; 333struct backing_dev_info;
335 334
335#ifdef CONFIG_HIBERNATION
336void hibernation_freeze_swap(void);
337void hibernation_thaw_swap(void);
338swp_entry_t get_swap_for_hibernation(int type);
339void swap_free_for_hibernation(swp_entry_t val);
340#endif
341
336/* linux/mm/thrash.c */ 342/* linux/mm/thrash.c */
337extern struct mm_struct *swap_token_mm; 343extern struct mm_struct *swap_token_mm;
338extern void grab_swap_token(struct mm_struct *); 344extern void grab_swap_token(struct mm_struct *);