diff options
author | Hugh Dickins <hugh.dickins@tiscali.co.uk> | 2009-12-14 20:58:40 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-15 11:53:13 -0500 |
commit | f29ad6a99b596b8169744d107bf088e8be9e8d0d (patch) | |
tree | e138bf9eeb751defd358eb5aca8113e2645ded3d /include/linux | |
parent | 976d6dfbb0175d136fc098854bbce0c028a3924b (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.h | 3 |
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); | |||
318 | extern int free_swap_and_cache(swp_entry_t); | 318 | extern int free_swap_and_cache(swp_entry_t); |
319 | extern int swap_type_of(dev_t, sector_t, struct block_device **); | 319 | extern int swap_type_of(dev_t, sector_t, struct block_device **); |
320 | extern unsigned int count_swap_pages(int, int); | 320 | extern unsigned int count_swap_pages(int, int); |
321 | extern sector_t map_swap_page(struct swap_info_struct *, pgoff_t); | 321 | extern sector_t map_swap_page(swp_entry_t, struct block_device **); |
322 | extern sector_t swapdev_block(int, pgoff_t); | 322 | extern sector_t swapdev_block(int, pgoff_t); |
323 | extern struct swap_info_struct *get_swap_info_struct(unsigned); | ||
324 | extern int reuse_swap_page(struct page *); | 323 | extern int reuse_swap_page(struct page *); |
325 | extern int try_to_free_swap(struct page *); | 324 | extern int try_to_free_swap(struct page *); |
326 | struct backing_dev_info; | 325 | struct backing_dev_info; |