diff options
Diffstat (limited to 'include/linux/swap.h')
-rw-r--r-- | include/linux/swap.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/swap.h b/include/linux/swap.h index c0d23ac710d5..3a31cc25bd2c 100644 --- a/include/linux/swap.h +++ b/include/linux/swap.h | |||
@@ -163,7 +163,6 @@ struct swap_list_t { | |||
163 | /* linux/mm/page_alloc.c */ | 163 | /* linux/mm/page_alloc.c */ |
164 | extern unsigned long totalram_pages; | 164 | extern unsigned long totalram_pages; |
165 | extern unsigned long totalreserve_pages; | 165 | extern unsigned long totalreserve_pages; |
166 | extern long nr_swap_pages; | ||
167 | extern unsigned int nr_free_buffer_pages(void); | 166 | extern unsigned int nr_free_buffer_pages(void); |
168 | extern unsigned int nr_free_pagecache_pages(void); | 167 | extern unsigned int nr_free_pagecache_pages(void); |
169 | 168 | ||
@@ -291,6 +290,7 @@ extern struct page *swapin_readahead(swp_entry_t, gfp_t, | |||
291 | struct vm_area_struct *vma, unsigned long addr); | 290 | struct vm_area_struct *vma, unsigned long addr); |
292 | 291 | ||
293 | /* linux/mm/swapfile.c */ | 292 | /* linux/mm/swapfile.c */ |
293 | extern long nr_swap_pages; | ||
294 | extern long total_swap_pages; | 294 | extern long total_swap_pages; |
295 | extern void si_swapinfo(struct sysinfo *); | 295 | extern void si_swapinfo(struct sysinfo *); |
296 | extern swp_entry_t get_swap_page(void); | 296 | extern swp_entry_t get_swap_page(void); |
@@ -331,7 +331,8 @@ static inline void disable_swap_token(void) | |||
331 | 331 | ||
332 | #else /* CONFIG_SWAP */ | 332 | #else /* CONFIG_SWAP */ |
333 | 333 | ||
334 | #define total_swap_pages 0 | 334 | #define nr_swap_pages 0L |
335 | #define total_swap_pages 0L | ||
335 | #define total_swapcache_pages 0UL | 336 | #define total_swapcache_pages 0UL |
336 | 337 | ||
337 | #define si_swapinfo(val) \ | 338 | #define si_swapinfo(val) \ |