diff options
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 095a9c9a64fb..bc6d27cecaac 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -696,12 +696,13 @@ struct file_ra_state { | |||
696 | unsigned long size; | 696 | unsigned long size; |
697 | unsigned long flags; /* ra flags RA_FLAG_xxx*/ | 697 | unsigned long flags; /* ra flags RA_FLAG_xxx*/ |
698 | unsigned long cache_hit; /* cache hit count*/ | 698 | unsigned long cache_hit; /* cache hit count*/ |
699 | unsigned long prev_page; /* Cache last read() position */ | 699 | unsigned long prev_index; /* Cache last read() position */ |
700 | unsigned long ahead_start; /* Ahead window */ | 700 | unsigned long ahead_start; /* Ahead window */ |
701 | unsigned long ahead_size; | 701 | unsigned long ahead_size; |
702 | unsigned long ra_pages; /* Maximum readahead window */ | 702 | unsigned long ra_pages; /* Maximum readahead window */ |
703 | unsigned long mmap_hit; /* Cache hit stat for mmap accesses */ | 703 | unsigned long mmap_hit; /* Cache hit stat for mmap accesses */ |
704 | unsigned long mmap_miss; /* Cache miss stat for mmap accesses */ | 704 | unsigned long mmap_miss; /* Cache miss stat for mmap accesses */ |
705 | unsigned int prev_offset; /* Offset where last read() ended in a page */ | ||
705 | }; | 706 | }; |
706 | #define RA_FLAG_MISS 0x01 /* a cache miss occured against this file */ | 707 | #define RA_FLAG_MISS 0x01 /* a cache miss occured against this file */ |
707 | #define RA_FLAG_INCACHE 0x02 /* file is already in cache */ | 708 | #define RA_FLAG_INCACHE 0x02 /* file is already in cache */ |
@@ -785,6 +786,7 @@ struct file_lock_operations { | |||
785 | struct lock_manager_operations { | 786 | struct lock_manager_operations { |
786 | int (*fl_compare_owner)(struct file_lock *, struct file_lock *); | 787 | int (*fl_compare_owner)(struct file_lock *, struct file_lock *); |
787 | void (*fl_notify)(struct file_lock *); /* unblock callback */ | 788 | void (*fl_notify)(struct file_lock *); /* unblock callback */ |
789 | int (*fl_grant)(struct file_lock *, struct file_lock *, int); | ||
788 | void (*fl_copy_lock)(struct file_lock *, struct file_lock *); | 790 | void (*fl_copy_lock)(struct file_lock *, struct file_lock *); |
789 | void (*fl_release_private)(struct file_lock *); | 791 | void (*fl_release_private)(struct file_lock *); |
790 | void (*fl_break)(struct file_lock *); | 792 | void (*fl_break)(struct file_lock *); |
@@ -856,11 +858,13 @@ extern void locks_init_lock(struct file_lock *); | |||
856 | extern void locks_copy_lock(struct file_lock *, struct file_lock *); | 858 | extern void locks_copy_lock(struct file_lock *, struct file_lock *); |
857 | extern void locks_remove_posix(struct file *, fl_owner_t); | 859 | extern void locks_remove_posix(struct file *, fl_owner_t); |
858 | extern void locks_remove_flock(struct file *); | 860 | extern void locks_remove_flock(struct file *); |
859 | extern int posix_test_lock(struct file *, struct file_lock *, struct file_lock *); | 861 | extern int posix_test_lock(struct file *, struct file_lock *); |
860 | extern int posix_lock_file_conf(struct file *, struct file_lock *, struct file_lock *); | 862 | extern int posix_lock_file(struct file *, struct file_lock *, struct file_lock *); |
861 | extern int posix_lock_file(struct file *, struct file_lock *); | ||
862 | extern int posix_lock_file_wait(struct file *, struct file_lock *); | 863 | extern int posix_lock_file_wait(struct file *, struct file_lock *); |
863 | extern int posix_unblock_lock(struct file *, struct file_lock *); | 864 | extern int posix_unblock_lock(struct file *, struct file_lock *); |
865 | extern int vfs_test_lock(struct file *, struct file_lock *); | ||
866 | extern int vfs_lock_file(struct file *, unsigned int, struct file_lock *, struct file_lock *); | ||
867 | extern int vfs_cancel_lock(struct file *filp, struct file_lock *fl); | ||
864 | extern int flock_lock_file_wait(struct file *filp, struct file_lock *fl); | 868 | extern int flock_lock_file_wait(struct file *filp, struct file_lock *fl); |
865 | extern int __break_lease(struct inode *inode, unsigned int flags); | 869 | extern int __break_lease(struct inode *inode, unsigned int flags); |
866 | extern void lease_get_mtime(struct inode *, struct timespec *time); | 870 | extern void lease_get_mtime(struct inode *, struct timespec *time); |
@@ -1416,7 +1420,7 @@ extern void mnt_set_mountpoint(struct vfsmount *, struct dentry *, | |||
1416 | extern int vfs_statfs(struct dentry *, struct kstatfs *); | 1420 | extern int vfs_statfs(struct dentry *, struct kstatfs *); |
1417 | 1421 | ||
1418 | /* /sys/fs */ | 1422 | /* /sys/fs */ |
1419 | extern struct subsystem fs_subsys; | 1423 | extern struct kset fs_subsys; |
1420 | 1424 | ||
1421 | #define FLOCK_VERIFY_READ 1 | 1425 | #define FLOCK_VERIFY_READ 1 |
1422 | #define FLOCK_VERIFY_WRITE 2 | 1426 | #define FLOCK_VERIFY_WRITE 2 |