27 #include <linux/kernel.h>
28 #include <linux/module.h>
29 #include <linux/errno.h>
32 #include <linux/stat.h>
33 #include <linux/string.h>
39 #include <linux/sched.h>
40 #include <linux/slab.h>
42 #include <linux/magic.h>
83 if (v9fs_proto_dotl(v9ses)) {
84 sb->
s_op = &v9fs_super_ops_dotl;
87 sb->
s_op = &v9fs_super_ops;
96 #ifdef CONFIG_9P_FS_POSIX_ACL
114 const char *dev_name,
void *data)
132 retval = PTR_ERR(fid);
140 sb =
sget(fs_type,
NULL, v9fs_set_super, flags, v9ses);
142 retval = PTR_ERR(sb);
145 v9fs_fill_super(sb, v9ses, flags, data);
154 retval = PTR_ERR(inode);
164 if (v9fs_proto_dotl(v9ses)) {
168 retval = PTR_ERR(st);
178 retval = PTR_ERR(st);
201 return ERR_PTR(retval);
212 return ERR_PTR(retval);
258 v9ses = v9fs_dentry2v9ses(dentry);
259 if (v9fs_proto_dotl(v9ses)) {
270 buf->
f_fsid.
val[1] = (
rs.fsid >> 32) & 0xFFFFFFFFUL;
281 static int v9fs_drop_inode(
struct inode *inode)
284 v9ses = v9fs_inode2v9ses(inode);
286 return generic_drop_inode(inode);
295 static int v9fs_write_inode(
struct inode *inode,
306 v9inode = V9FS_I(inode);
319 static int v9fs_write_inode_dotl(
struct inode *inode,
329 v9inode = V9FS_I(inode);
346 .umount_begin = v9fs_umount_begin,
347 .write_inode = v9fs_write_inode,
353 .statfs = v9fs_statfs,
354 .drop_inode = v9fs_drop_inode,
357 .umount_begin = v9fs_umount_begin,
358 .write_inode = v9fs_write_inode_dotl,
364 .kill_sb = v9fs_kill_super,