aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorHugh Dickins <hugh.dickins@tiscali.co.uk>2009-12-14 20:58:40 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2009-12-15 11:53:13 -0500
commitf29ad6a99b596b8169744d107bf088e8be9e8d0d (patch)
treee138bf9eeb751defd358eb5aca8113e2645ded3d /include/linux
parent976d6dfbb0175d136fc098854bbce0c028a3924b (diff)
swap_info: private to swapfile.c
The swap_info_struct is mostly private to mm/swapfile.c, with only one other in-tree user: get_swap_bio(). Adjust its interface to map_swap_page(), so that we can then remove get_swap_info_struct(). But there is a popular user out-of-tree, TuxOnIce: so leave the declaration of swap_info_struct in linux/swap.h. Signed-off-by: Hugh Dickins <hugh.dickins@tiscali.co.uk> Cc: Nigel Cunningham <ncunningham@crca.org.au> Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Reviewed-by: Rik van Riel <riel@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/swap.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/swap.h b/include/linux/swap.h
index abce8a0b2507..82aa7e121c05 100644
--- a/include/linux/swap.h
+++ b/include/linux/swap.h
@@ -318,9 +318,8 @@ extern void swapcache_free(swp_entry_t, struct page *page);
318extern int free_swap_and_cache(swp_entry_t); 318extern int free_swap_and_cache(swp_entry_t);
319extern int swap_type_of(dev_t, sector_t, struct block_device **); 319extern int swap_type_of(dev_t, sector_t, struct block_device **);
320extern unsigned int count_swap_pages(int, int); 320extern unsigned int count_swap_pages(int, int);
321extern sector_t map_swap_page(struct swap_info_struct *, pgoff_t); 321extern sector_t map_swap_page(swp_entry_t, struct block_device **);
322extern sector_t swapdev_block(int, pgoff_t); 322extern sector_t swapdev_block(int, pgoff_t);
323extern struct swap_info_struct *get_swap_info_struct(unsigned);
324extern int reuse_swap_page(struct page *); 323extern int reuse_swap_page(struct page *);
325extern int try_to_free_swap(struct page *); 324extern int try_to_free_swap(struct page *);
326struct backing_dev_info; 325struct backing_dev_info;