diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/fs.h | 6 | ||||
-rw-r--r-- | include/linux/swap.h | 5 |
2 files changed, 9 insertions, 2 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 38356ab827c9..c8667f8b5358 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -429,6 +429,7 @@ struct kstatfs; | |||
429 | struct vm_area_struct; | 429 | struct vm_area_struct; |
430 | struct vfsmount; | 430 | struct vfsmount; |
431 | struct cred; | 431 | struct cred; |
432 | struct swap_info_struct; | ||
432 | 433 | ||
433 | extern void __init inode_init(void); | 434 | extern void __init inode_init(void); |
434 | extern void __init inode_init_early(void); | 435 | extern void __init inode_init_early(void); |
@@ -640,8 +641,9 @@ struct address_space_operations { | |||
640 | int (*error_remove_page)(struct address_space *, struct page *); | 641 | int (*error_remove_page)(struct address_space *, struct page *); |
641 | 642 | ||
642 | /* swapfile support */ | 643 | /* swapfile support */ |
643 | int (*swap_activate)(struct file *file); | 644 | int (*swap_activate)(struct swap_info_struct *sis, struct file *file, |
644 | int (*swap_deactivate)(struct file *file); | 645 | sector_t *span); |
646 | void (*swap_deactivate)(struct file *file); | ||
645 | }; | 647 | }; |
646 | 648 | ||
647 | extern const struct address_space_operations empty_aops; | 649 | extern const struct address_space_operations empty_aops; |
diff --git a/include/linux/swap.h b/include/linux/swap.h index ab230b1ebf61..388e70601413 100644 --- a/include/linux/swap.h +++ b/include/linux/swap.h | |||
@@ -324,6 +324,11 @@ extern int swap_writepage(struct page *page, struct writeback_control *wbc); | |||
324 | extern int swap_set_page_dirty(struct page *page); | 324 | extern int swap_set_page_dirty(struct page *page); |
325 | extern void end_swap_bio_read(struct bio *bio, int err); | 325 | extern void end_swap_bio_read(struct bio *bio, int err); |
326 | 326 | ||
327 | int add_swap_extent(struct swap_info_struct *sis, unsigned long start_page, | ||
328 | unsigned long nr_pages, sector_t start_block); | ||
329 | int generic_swapfile_activate(struct swap_info_struct *, struct file *, | ||
330 | sector_t *); | ||
331 | |||
327 | /* linux/mm/swap_state.c */ | 332 | /* linux/mm/swap_state.c */ |
328 | extern struct address_space swapper_space; | 333 | extern struct address_space swapper_space; |
329 | #define total_swapcache_pages swapper_space.nrpages | 334 | #define total_swapcache_pages swapper_space.nrpages |