diff options
Diffstat (limited to 'include/linux/swap.h')
-rw-r--r-- | include/linux/swap.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/linux/swap.h b/include/linux/swap.h index 8c66486a8ca8..235c039892ee 100644 --- a/include/linux/swap.h +++ b/include/linux/swap.h | |||
@@ -8,7 +8,7 @@ | |||
8 | #include <linux/memcontrol.h> | 8 | #include <linux/memcontrol.h> |
9 | #include <linux/sched.h> | 9 | #include <linux/sched.h> |
10 | #include <linux/node.h> | 10 | #include <linux/node.h> |
11 | 11 | #include <linux/fs.h> | |
12 | #include <linux/atomic.h> | 12 | #include <linux/atomic.h> |
13 | #include <asm/page.h> | 13 | #include <asm/page.h> |
14 | 14 | ||
@@ -330,8 +330,9 @@ int generic_swapfile_activate(struct swap_info_struct *, struct file *, | |||
330 | sector_t *); | 330 | sector_t *); |
331 | 331 | ||
332 | /* linux/mm/swap_state.c */ | 332 | /* linux/mm/swap_state.c */ |
333 | extern struct address_space swapper_space; | 333 | extern struct address_space swapper_spaces[]; |
334 | #define total_swapcache_pages swapper_space.nrpages | 334 | #define swap_address_space(entry) (&swapper_spaces[swp_type(entry)]) |
335 | extern unsigned long total_swapcache_pages(void); | ||
335 | extern void show_swap_cache_info(void); | 336 | extern void show_swap_cache_info(void); |
336 | extern int add_to_swap(struct page *); | 337 | extern int add_to_swap(struct page *); |
337 | extern int add_to_swap_cache(struct page *, swp_entry_t, gfp_t); | 338 | extern int add_to_swap_cache(struct page *, swp_entry_t, gfp_t); |
@@ -382,7 +383,7 @@ mem_cgroup_uncharge_swapcache(struct page *page, swp_entry_t ent, bool swapout) | |||
382 | 383 | ||
383 | #define nr_swap_pages 0L | 384 | #define nr_swap_pages 0L |
384 | #define total_swap_pages 0L | 385 | #define total_swap_pages 0L |
385 | #define total_swapcache_pages 0UL | 386 | #define total_swapcache_pages() 0UL |
386 | 387 | ||
387 | #define si_swapinfo(val) \ | 388 | #define si_swapinfo(val) \ |
388 | do { (val)->freeswap = (val)->totalswap = 0; } while (0) | 389 | do { (val)->freeswap = (val)->totalswap = 0; } while (0) |