diff options
| author | Andrew Morton <akpm@digeo.com> | 2003-03-28 03:18:54 -0800 |
|---|---|---|
| committer | Dave Jones <davej@tetrachloride.(none)> | 2003-03-28 03:18:54 -0800 |
| commit | 8dae676839ed602f024b9c04d006976e26b01654 (patch) | |
| tree | 9f0cc901c32ff60d786165f848cd4f3ee7a8c67d /include/linux | |
| parent | 09efe93ddcd52808ace23ceaea7477097fb4b6e6 (diff) | |
[PATCH] make add_to_swap_cache() static
From: Hugh Dickins <hugh@veritas.com>
Make add_to_swap_cache static, it's only used by read_swap_cache_async;
and since that has just done a GFP_HIGHUSER allocation, surely it's
better for add_to_swap_cache to use GFP_KERNEL than GFP_ATOMIC.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/swap.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/swap.h b/include/linux/swap.h index a2a294961dca..50f651d752cc 100644 --- a/include/linux/swap.h +++ b/include/linux/swap.h @@ -200,7 +200,6 @@ extern int rw_swap_page_sync(int, swp_entry_t, struct page *); extern struct address_space swapper_space; #define total_swapcache_pages swapper_space.nrpages extern void show_swap_cache_info(void); -extern int add_to_swap_cache(struct page *, swp_entry_t); extern int add_to_swap(struct page *); extern void __delete_from_swap_cache(struct page *); extern void delete_from_swap_cache(struct page *); |
