hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/fs/cifs/cifsfs.h
....@@ -51,7 +51,7 @@
5151 return (unsigned long) dentry->d_fsdata;
5252 }
5353
54
-extern struct file_system_type cifs_fs_type;
54
+extern struct file_system_type cifs_fs_type, smb3_fs_type;
5555 extern const struct address_space_operations cifs_addr_ops;
5656 extern const struct address_space_operations cifs_addr_ops_smallbuf;
5757
....@@ -84,6 +84,8 @@
8484 extern int cifs_zap_mapping(struct inode *inode);
8585 extern int cifs_getattr(const struct path *, struct kstat *, u32, unsigned int);
8686 extern int cifs_setattr(struct dentry *, struct iattr *);
87
+extern int cifs_fiemap(struct inode *, struct fiemap_extent_info *, u64 start,
88
+ u64 len);
8789
8890 extern const struct inode_operations cifs_file_inode_ops;
8991 extern const struct inode_operations cifs_symlink_inode_ops;
....@@ -101,9 +103,12 @@
101103 extern int cifs_close(struct inode *inode, struct file *file);
102104 extern int cifs_closedir(struct inode *inode, struct file *file);
103105 extern ssize_t cifs_user_readv(struct kiocb *iocb, struct iov_iter *to);
106
+extern ssize_t cifs_direct_readv(struct kiocb *iocb, struct iov_iter *to);
104107 extern ssize_t cifs_strict_readv(struct kiocb *iocb, struct iov_iter *to);
105108 extern ssize_t cifs_user_writev(struct kiocb *iocb, struct iov_iter *from);
109
+extern ssize_t cifs_direct_writev(struct kiocb *iocb, struct iov_iter *from);
106110 extern ssize_t cifs_strict_writev(struct kiocb *iocb, struct iov_iter *from);
111
+extern int cifs_flock(struct file *pfile, int cmd, struct file_lock *plock);
107112 extern int cifs_lock(struct file *, int, struct file_lock *);
108113 extern int cifs_fsync(struct file *, loff_t, loff_t, int);
109114 extern int cifs_strict_fsync(struct file *, loff_t, loff_t, int);
....@@ -121,7 +126,10 @@
121126 #ifdef CONFIG_CIFS_DFS_UPCALL
122127 extern struct vfsmount *cifs_dfs_d_automount(struct path *path);
123128 #else
124
-#define cifs_dfs_d_automount NULL
129
+static inline struct vfsmount *cifs_dfs_d_automount(struct path *path)
130
+{
131
+ return ERR_PTR(-EREMOTE);
132
+}
125133 #endif
126134
127135 /* Functions related to symlinks */
....@@ -144,9 +152,12 @@
144152 size_t len, unsigned int flags);
145153
146154 extern long cifs_ioctl(struct file *filep, unsigned int cmd, unsigned long arg);
155
+extern void cifs_setsize(struct inode *inode, loff_t offset);
156
+extern int cifs_truncate_page(struct address_space *mapping, loff_t from);
157
+
147158 #ifdef CONFIG_CIFS_NFSD_EXPORT
148159 extern const struct export_operations cifs_export_ops;
149160 #endif /* CONFIG_CIFS_NFSD_EXPORT */
150161
151
-#define CIFS_VERSION "2.13"
162
+#define CIFS_VERSION "2.29"
152163 #endif /* _CIFSFS_H */