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.h26
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 *);
1053extern void locks_release_private(struct file_lock *); 1053extern void locks_release_private(struct file_lock *);
1054extern void posix_test_lock(struct file *, struct file_lock *); 1054extern void posix_test_lock(struct file *, struct file_lock *);
1055extern int posix_lock_file(struct file *, struct file_lock *, struct file_lock *); 1055extern int posix_lock_file(struct file *, struct file_lock *, struct file_lock *);
1056extern int posix_lock_inode_wait(struct inode *, struct file_lock *);
1057extern int posix_unblock_lock(struct file_lock *); 1056extern int posix_unblock_lock(struct file_lock *);
1058extern int vfs_test_lock(struct file *, struct file_lock *); 1057extern int vfs_test_lock(struct file *, struct file_lock *);
1059extern int vfs_lock_file(struct file *, unsigned int, struct file_lock *, struct file_lock *); 1058extern int vfs_lock_file(struct file *, unsigned int, struct file_lock *, struct file_lock *);
1060extern int vfs_cancel_lock(struct file *filp, struct file_lock *fl); 1059extern int vfs_cancel_lock(struct file *filp, struct file_lock *fl);
1061extern int flock_lock_inode_wait(struct inode *inode, struct file_lock *fl); 1060extern int locks_lock_inode_wait(struct inode *inode, struct file_lock *fl);
1062extern int __break_lease(struct inode *inode, unsigned int flags, unsigned int type); 1061extern int __break_lease(struct inode *inode, unsigned int flags, unsigned int type);
1063extern void lease_get_mtime(struct inode *, struct timespec *time); 1062extern void lease_get_mtime(struct inode *, struct timespec *time);
1064extern int generic_setlease(struct file *, long, struct file_lock **, void **priv); 1063extern 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
1147static inline int posix_lock_inode_wait(struct inode *inode,
1148 struct file_lock *fl)
1149{
1150 return -ENOLCK;
1151}
1152
1153static inline int posix_unblock_lock(struct file_lock *waiter) 1146static 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
1174static inline int flock_lock_inode_wait(struct inode *inode, 1167static 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
1218static inline int posix_lock_file_wait(struct file *filp, struct file_lock *fl) 1210static 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
1223static 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
1228struct fasync_struct { 1215struct 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
1685ssize_t rw_copy_check_uvector(int type, const struct iovec __user * uvector, 1670ssize_t rw_copy_check_uvector(int type, const struct iovec __user * uvector,
@@ -2422,6 +2407,7 @@ extern int write_inode_now(struct inode *, int);
2422extern int filemap_fdatawrite(struct address_space *); 2407extern int filemap_fdatawrite(struct address_space *);
2423extern int filemap_flush(struct address_space *); 2408extern int filemap_flush(struct address_space *);
2424extern int filemap_fdatawait(struct address_space *); 2409extern int filemap_fdatawait(struct address_space *);
2410extern void filemap_fdatawait_keep_errors(struct address_space *);
2425extern int filemap_fdatawait_range(struct address_space *, loff_t lstart, 2411extern int filemap_fdatawait_range(struct address_space *, loff_t lstart,
2426 loff_t lend); 2412 loff_t lend);
2427extern int filemap_write_and_wait(struct address_space *mapping); 2413extern int filemap_write_and_wait(struct address_space *mapping);
@@ -2625,7 +2611,7 @@ static inline void remove_inode_hash(struct inode *inode)
2625extern void inode_sb_list_add(struct inode *inode); 2611extern void inode_sb_list_add(struct inode *inode);
2626 2612
2627#ifdef CONFIG_BLOCK 2613#ifdef CONFIG_BLOCK
2628extern void submit_bio(int, struct bio *); 2614extern blk_qc_t submit_bio(int, struct bio *);
2629extern int bdev_read_only(struct block_device *); 2615extern int bdev_read_only(struct block_device *);
2630#endif 2616#endif
2631extern int set_blocksize(struct block_device *, int); 2617extern int set_blocksize(struct block_device *, int);