summaryrefslogtreecommitdiffstats
path: root/include/linux/swap.h
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@kernel.org>2008-07-25 19:46:24 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2008-07-26 12:00:12 -0700
commit7c363b8c6536f26934172d3c46f0bbec01a97c61 (patch)
tree46a9ce1b0ef9285ab2c7b04f0cf584294853a16f /include/linux/swap.h
parent15f59adae001766a2c7f7fe4f196387bb04bcff5 (diff)
downloadop-kernel-dev-7c363b8c6536f26934172d3c46f0bbec01a97c61.zip
op-kernel-dev-7c363b8c6536f26934172d3c46f0bbec01a97c61.tar.gz
mm/swapfile.c: make code static
This patch makes the following needlessly global code static: - swap_lock - nr_swapfiles - struct swap_list Signed-off-by: Adrian Bunk <bunk@kernel.org> Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/swap.h')
-rw-r--r--include/linux/swap.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/swap.h b/include/linux/swap.h
index 0b33776..de40f169a 100644
--- a/include/linux/swap.h
+++ b/include/linux/swap.h
@@ -237,7 +237,6 @@ extern struct page *swapin_readahead(swp_entry_t, gfp_t,
/* linux/mm/swapfile.c */
extern long total_swap_pages;
-extern unsigned int nr_swapfiles;
extern void si_swapinfo(struct sysinfo *);
extern swp_entry_t get_swap_page(void);
extern swp_entry_t get_swap_page_of_type(int);
@@ -254,8 +253,6 @@ extern int can_share_swap_page(struct page *);
extern int remove_exclusive_swap_page(struct page *);
struct backing_dev_info;
-extern spinlock_t swap_lock;
-
/* linux/mm/thrash.c */
extern struct mm_struct * swap_token_mm;
extern void grab_swap_token(void);
OpenPOWER on IntegriCloud