| .. | .. |
|---|
| 51 | 51 | return (unsigned long) dentry->d_fsdata; |
|---|
| 52 | 52 | } |
|---|
| 53 | 53 | |
|---|
| 54 | | -extern struct file_system_type cifs_fs_type; |
|---|
| 54 | +extern struct file_system_type cifs_fs_type, smb3_fs_type; |
|---|
| 55 | 55 | extern const struct address_space_operations cifs_addr_ops; |
|---|
| 56 | 56 | extern const struct address_space_operations cifs_addr_ops_smallbuf; |
|---|
| 57 | 57 | |
|---|
| .. | .. |
|---|
| 84 | 84 | extern int cifs_zap_mapping(struct inode *inode); |
|---|
| 85 | 85 | extern int cifs_getattr(const struct path *, struct kstat *, u32, unsigned int); |
|---|
| 86 | 86 | extern int cifs_setattr(struct dentry *, struct iattr *); |
|---|
| 87 | +extern int cifs_fiemap(struct inode *, struct fiemap_extent_info *, u64 start, |
|---|
| 88 | + u64 len); |
|---|
| 87 | 89 | |
|---|
| 88 | 90 | extern const struct inode_operations cifs_file_inode_ops; |
|---|
| 89 | 91 | extern const struct inode_operations cifs_symlink_inode_ops; |
|---|
| .. | .. |
|---|
| 101 | 103 | extern int cifs_close(struct inode *inode, struct file *file); |
|---|
| 102 | 104 | extern int cifs_closedir(struct inode *inode, struct file *file); |
|---|
| 103 | 105 | 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); |
|---|
| 104 | 107 | extern ssize_t cifs_strict_readv(struct kiocb *iocb, struct iov_iter *to); |
|---|
| 105 | 108 | 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); |
|---|
| 106 | 110 | 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); |
|---|
| 107 | 112 | extern int cifs_lock(struct file *, int, struct file_lock *); |
|---|
| 108 | 113 | extern int cifs_fsync(struct file *, loff_t, loff_t, int); |
|---|
| 109 | 114 | extern int cifs_strict_fsync(struct file *, loff_t, loff_t, int); |
|---|
| .. | .. |
|---|
| 121 | 126 | #ifdef CONFIG_CIFS_DFS_UPCALL |
|---|
| 122 | 127 | extern struct vfsmount *cifs_dfs_d_automount(struct path *path); |
|---|
| 123 | 128 | #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 | +} |
|---|
| 125 | 133 | #endif |
|---|
| 126 | 134 | |
|---|
| 127 | 135 | /* Functions related to symlinks */ |
|---|
| .. | .. |
|---|
| 144 | 152 | size_t len, unsigned int flags); |
|---|
| 145 | 153 | |
|---|
| 146 | 154 | 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 | + |
|---|
| 147 | 158 | #ifdef CONFIG_CIFS_NFSD_EXPORT |
|---|
| 148 | 159 | extern const struct export_operations cifs_export_ops; |
|---|
| 149 | 160 | #endif /* CONFIG_CIFS_NFSD_EXPORT */ |
|---|
| 150 | 161 | |
|---|
| 151 | | -#define CIFS_VERSION "2.13" |
|---|
| 162 | +#define CIFS_VERSION "2.29" |
|---|
| 152 | 163 | #endif /* _CIFSFS_H */ |
|---|