aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fs.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r--include/linux/fs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index b178f9e91e23..d7eed5b98ae2 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -165,6 +165,8 @@ struct inodes_stat_t {
165#define READ 0 165#define READ 0
166#define WRITE RW_MASK 166#define WRITE RW_MASK
167#define READA RWA_MASK 167#define READA RWA_MASK
168#define KERNEL_READ (READ|REQ_KERNEL)
169#define KERNEL_WRITE (WRITE|REQ_KERNEL)
168 170
169#define READ_SYNC (READ | REQ_SYNC) 171#define READ_SYNC (READ | REQ_SYNC)
170#define WRITE_SYNC (WRITE | REQ_SYNC | REQ_NOIDLE) 172#define WRITE_SYNC (WRITE | REQ_SYNC | REQ_NOIDLE)
@@ -427,6 +429,7 @@ struct kstatfs;
427struct vm_area_struct; 429struct vm_area_struct;
428struct vfsmount; 430struct vfsmount;
429struct cred; 431struct cred;
432struct swap_info_struct;
430 433
431extern void __init inode_init(void); 434extern void __init inode_init(void);
432extern void __init inode_init_early(void); 435extern void __init inode_init_early(void);
@@ -636,6 +639,11 @@ struct address_space_operations {
636 int (*is_partially_uptodate) (struct page *, read_descriptor_t *, 639 int (*is_partially_uptodate) (struct page *, read_descriptor_t *,
637 unsigned long); 640 unsigned long);
638 int (*error_remove_page)(struct address_space *, struct page *); 641 int (*error_remove_page)(struct address_space *, struct page *);
642
643 /* swapfile support */
644 int (*swap_activate)(struct swap_info_struct *sis, struct file *file,
645 sector_t *span);
646 void (*swap_deactivate)(struct file *file);
639}; 647};
640 648
641extern const struct address_space_operations empty_aops; 649extern const struct address_space_operations empty_aops;