hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
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);
....@@ -144,9 +149,12 @@
144149 size_t len, unsigned int flags);
145150
146151 extern long cifs_ioctl(struct file *filep, unsigned int cmd, unsigned long arg);
152
+extern void cifs_setsize(struct inode *inode, loff_t offset);
153
+extern int cifs_truncate_page(struct address_space *mapping, loff_t from);
154
+
147155 #ifdef CONFIG_CIFS_NFSD_EXPORT
148156 extern const struct export_operations cifs_export_ops;
149157 #endif /* CONFIG_CIFS_NFSD_EXPORT */
150158
151
-#define CIFS_VERSION "2.13"
159
+#define CIFS_VERSION "2.29"
152160 #endif /* _CIFSFS_H */