diff options
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 26 |
1 files changed, 6 insertions, 20 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 72d8a844c692..3aa514254161 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -1053,12 +1053,11 @@ extern void locks_remove_file(struct file *); | |||
1053 | extern void locks_release_private(struct file_lock *); | 1053 | extern void locks_release_private(struct file_lock *); |
1054 | extern void posix_test_lock(struct file *, struct file_lock *); | 1054 | extern void posix_test_lock(struct file *, struct file_lock *); |
1055 | extern int posix_lock_file(struct file *, struct file_lock *, struct file_lock *); | 1055 | extern int posix_lock_file(struct file *, struct file_lock *, struct file_lock *); |
1056 | extern int posix_lock_inode_wait(struct inode *, struct file_lock *); | ||
1057 | extern int posix_unblock_lock(struct file_lock *); | 1056 | extern int posix_unblock_lock(struct file_lock *); |
1058 | extern int vfs_test_lock(struct file *, struct file_lock *); | 1057 | extern int vfs_test_lock(struct file *, struct file_lock *); |
1059 | extern int vfs_lock_file(struct file *, unsigned int, struct file_lock *, struct file_lock *); | 1058 | extern int vfs_lock_file(struct file *, unsigned int, struct file_lock *, struct file_lock *); |
1060 | extern int vfs_cancel_lock(struct file *filp, struct file_lock *fl); | 1059 | extern int vfs_cancel_lock(struct file *filp, struct file_lock *fl); |
1061 | extern int flock_lock_inode_wait(struct inode *inode, struct file_lock *fl); | 1060 | extern int locks_lock_inode_wait(struct inode *inode, struct file_lock *fl); |
1062 | extern int __break_lease(struct inode *inode, unsigned int flags, unsigned int type); | 1061 | extern int __break_lease(struct inode *inode, unsigned int flags, unsigned int type); |
1063 | extern void lease_get_mtime(struct inode *, struct timespec *time); | 1062 | extern void lease_get_mtime(struct inode *, struct timespec *time); |
1064 | extern int generic_setlease(struct file *, long, struct file_lock **, void **priv); | 1063 | extern int generic_setlease(struct file *, long, struct file_lock **, void **priv); |
@@ -1144,12 +1143,6 @@ static inline int posix_lock_file(struct file *filp, struct file_lock *fl, | |||
1144 | return -ENOLCK; | 1143 | return -ENOLCK; |
1145 | } | 1144 | } |
1146 | 1145 | ||
1147 | static inline int posix_lock_inode_wait(struct inode *inode, | ||
1148 | struct file_lock *fl) | ||
1149 | { | ||
1150 | return -ENOLCK; | ||
1151 | } | ||
1152 | |||
1153 | static inline int posix_unblock_lock(struct file_lock *waiter) | 1146 | static inline int posix_unblock_lock(struct file_lock *waiter) |
1154 | { | 1147 | { |
1155 | return -ENOENT; | 1148 | return -ENOENT; |
@@ -1171,8 +1164,7 @@ static inline int vfs_cancel_lock(struct file *filp, struct file_lock *fl) | |||
1171 | return 0; | 1164 | return 0; |
1172 | } | 1165 | } |
1173 | 1166 | ||
1174 | static inline int flock_lock_inode_wait(struct inode *inode, | 1167 | static inline int locks_lock_inode_wait(struct inode *inode, struct file_lock *fl) |
1175 | struct file_lock *request) | ||
1176 | { | 1168 | { |
1177 | return -ENOLCK; | 1169 | return -ENOLCK; |
1178 | } | 1170 | } |
@@ -1215,14 +1207,9 @@ static inline struct inode *file_inode(const struct file *f) | |||
1215 | return f->f_inode; | 1207 | return f->f_inode; |
1216 | } | 1208 | } |
1217 | 1209 | ||
1218 | static inline int posix_lock_file_wait(struct file *filp, struct file_lock *fl) | 1210 | static inline int locks_lock_file_wait(struct file *filp, struct file_lock *fl) |
1219 | { | 1211 | { |
1220 | return posix_lock_inode_wait(file_inode(filp), fl); | 1212 | return locks_lock_inode_wait(file_inode(filp), fl); |
1221 | } | ||
1222 | |||
1223 | static inline int flock_lock_file_wait(struct file *filp, struct file_lock *fl) | ||
1224 | { | ||
1225 | return flock_lock_inode_wait(file_inode(filp), fl); | ||
1226 | } | 1213 | } |
1227 | 1214 | ||
1228 | struct fasync_struct { | 1215 | struct fasync_struct { |
@@ -1678,8 +1665,6 @@ struct inode_operations { | |||
1678 | umode_t create_mode, int *opened); | 1665 | umode_t create_mode, int *opened); |
1679 | int (*tmpfile) (struct inode *, struct dentry *, umode_t); | 1666 | int (*tmpfile) (struct inode *, struct dentry *, umode_t); |
1680 | int (*set_acl)(struct inode *, struct posix_acl *, int); | 1667 | int (*set_acl)(struct inode *, struct posix_acl *, int); |
1681 | |||
1682 | /* WARNING: probably going away soon, do not use! */ | ||
1683 | } ____cacheline_aligned; | 1668 | } ____cacheline_aligned; |
1684 | 1669 | ||
1685 | ssize_t rw_copy_check_uvector(int type, const struct iovec __user * uvector, | 1670 | ssize_t rw_copy_check_uvector(int type, const struct iovec __user * uvector, |
@@ -2422,6 +2407,7 @@ extern int write_inode_now(struct inode *, int); | |||
2422 | extern int filemap_fdatawrite(struct address_space *); | 2407 | extern int filemap_fdatawrite(struct address_space *); |
2423 | extern int filemap_flush(struct address_space *); | 2408 | extern int filemap_flush(struct address_space *); |
2424 | extern int filemap_fdatawait(struct address_space *); | 2409 | extern int filemap_fdatawait(struct address_space *); |
2410 | extern void filemap_fdatawait_keep_errors(struct address_space *); | ||
2425 | extern int filemap_fdatawait_range(struct address_space *, loff_t lstart, | 2411 | extern int filemap_fdatawait_range(struct address_space *, loff_t lstart, |
2426 | loff_t lend); | 2412 | loff_t lend); |
2427 | extern int filemap_write_and_wait(struct address_space *mapping); | 2413 | extern int filemap_write_and_wait(struct address_space *mapping); |
@@ -2625,7 +2611,7 @@ static inline void remove_inode_hash(struct inode *inode) | |||
2625 | extern void inode_sb_list_add(struct inode *inode); | 2611 | extern void inode_sb_list_add(struct inode *inode); |
2626 | 2612 | ||
2627 | #ifdef CONFIG_BLOCK | 2613 | #ifdef CONFIG_BLOCK |
2628 | extern void submit_bio(int, struct bio *); | 2614 | extern blk_qc_t submit_bio(int, struct bio *); |
2629 | extern int bdev_read_only(struct block_device *); | 2615 | extern int bdev_read_only(struct block_device *); |
2630 | #endif | 2616 | #endif |
2631 | extern int set_blocksize(struct block_device *, int); | 2617 | extern int set_blocksize(struct block_device *, int); |