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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/swap.h b/include/linux/swap.h
index 3116382067cd..956eae8a8edf 100644
--- a/include/linux/swap.h
+++ b/include/linux/swap.h
@@ -27,6 +27,7 @@ struct bio;
27#define SWAP_FLAGS_VALID (SWAP_FLAG_PRIO_MASK | SWAP_FLAG_PREFER | \ 27#define SWAP_FLAGS_VALID (SWAP_FLAG_PRIO_MASK | SWAP_FLAG_PREFER | \
28 SWAP_FLAG_DISCARD | SWAP_FLAG_DISCARD_ONCE | \ 28 SWAP_FLAG_DISCARD | SWAP_FLAG_DISCARD_ONCE | \
29 SWAP_FLAG_DISCARD_PAGES) 29 SWAP_FLAG_DISCARD_PAGES)
30#define SWAP_BATCH 64
30 31
31static inline int current_is_kswapd(void) 32static inline int current_is_kswapd(void)
32{ 33{
@@ -386,6 +387,7 @@ static inline long get_nr_swap_pages(void)
386extern void si_swapinfo(struct sysinfo *); 387extern void si_swapinfo(struct sysinfo *);
387extern swp_entry_t get_swap_page(void); 388extern swp_entry_t get_swap_page(void);
388extern swp_entry_t get_swap_page_of_type(int); 389extern swp_entry_t get_swap_page_of_type(int);
390extern int get_swap_pages(int n, swp_entry_t swp_entries[]);
389extern int add_swap_count_continuation(swp_entry_t, gfp_t); 391extern int add_swap_count_continuation(swp_entry_t, gfp_t);
390extern void swap_shmem_alloc(swp_entry_t); 392extern void swap_shmem_alloc(swp_entry_t);
391extern int swap_duplicate(swp_entry_t); 393extern int swap_duplicate(swp_entry_t);