Home
last modified time | relevance | path

Searched refs:v9ses (Results 1 – 12 of 12) sorted by relevance

/fs/9p/
Dv9fs.c108 struct v9fs_session_info *v9ses = root->d_sb->s_fs_info; in v9fs_show_options() local
110 if (v9ses->debug) in v9fs_show_options()
111 seq_printf(m, ",debug=%x", v9ses->debug); in v9fs_show_options()
112 if (!uid_eq(v9ses->dfltuid, V9FS_DEFUID)) in v9fs_show_options()
114 from_kuid_munged(&init_user_ns, v9ses->dfltuid)); in v9fs_show_options()
115 if (!gid_eq(v9ses->dfltgid, V9FS_DEFGID)) in v9fs_show_options()
117 from_kgid_munged(&init_user_ns, v9ses->dfltgid)); in v9fs_show_options()
118 if (v9ses->afid != ~0) in v9fs_show_options()
119 seq_printf(m, ",afid=%u", v9ses->afid); in v9fs_show_options()
120 if (strcmp(v9ses->uname, V9FS_DEFUSER) != 0) in v9fs_show_options()
[all …]
Dvfs_inode.c49 static u32 unixmode2p9mode(struct v9fs_session_info *v9ses, umode_t mode) in unixmode2p9mode() argument
56 if (v9fs_proto_dotu(v9ses)) { in unixmode2p9mode()
57 if (v9ses->nodev == 0) { in unixmode2p9mode()
84 static int p9mode2perm(struct v9fs_session_info *v9ses, in p9mode2perm() argument
91 if (v9fs_proto_dotu(v9ses)) { in p9mode2perm()
111 static umode_t p9mode2unixmode(struct v9fs_session_info *v9ses, in p9mode2unixmode() argument
118 res = p9mode2perm(v9ses, stat); in p9mode2unixmode()
122 else if ((mode & P9_DMSYMLINK) && (v9fs_proto_dotu(v9ses))) in p9mode2unixmode()
124 else if ((mode & P9_DMSOCKET) && (v9fs_proto_dotu(v9ses)) in p9mode2unixmode()
125 && (v9ses->nodev == 0)) in p9mode2unixmode()
[all …]
Dvfs_super.c60 v9fs_fill_super(struct super_block *sb, struct v9fs_session_info *v9ses, in v9fs_fill_super() argument
66 sb->s_blocksize_bits = fls(v9ses->maxdata - 1); in v9fs_fill_super()
69 if (v9fs_proto_dotl(v9ses)) { in v9fs_fill_super()
83 if (!v9ses->cache) { in v9fs_fill_super()
89 if (!v9ses->cache) in v9fs_fill_super()
93 if ((v9ses->flags & V9FS_ACL_MASK) == V9FS_POSIX_ACL) in v9fs_fill_super()
115 struct v9fs_session_info *v9ses = NULL; in v9fs_mount() local
122 v9ses = kzalloc(sizeof(struct v9fs_session_info), GFP_KERNEL); in v9fs_mount()
123 if (!v9ses) in v9fs_mount()
126 fid = v9fs_session_init(v9ses, dev_name, data); in v9fs_mount()
[all …]
Dcache.c34 int v9fs_random_cachetag(struct v9fs_session_info *v9ses) in v9fs_random_cachetag() argument
36 v9ses->cachetag = kmalloc(CACHETAG_LEN, GFP_KERNEL); in v9fs_random_cachetag()
37 if (!v9ses->cachetag) in v9fs_random_cachetag()
40 return scnprintf(v9ses->cachetag, CACHETAG_LEN, "%lu", jiffies); in v9fs_random_cachetag()
48 void v9fs_cache_session_get_cookie(struct v9fs_session_info *v9ses) in v9fs_cache_session_get_cookie() argument
51 if (!v9ses->cachetag) { in v9fs_cache_session_get_cookie()
52 if (v9fs_random_cachetag(v9ses) < 0) { in v9fs_cache_session_get_cookie()
53 v9ses->fscache = NULL; in v9fs_cache_session_get_cookie()
54 kfree(v9ses->cachetag); in v9fs_cache_session_get_cookie()
55 v9ses->cachetag = NULL; in v9fs_cache_session_get_cookie()
[all …]
Dv9fs.h131 extern void v9fs_session_close(struct v9fs_session_info *v9ses);
132 extern void v9fs_session_cancel(struct v9fs_session_info *v9ses);
133 extern void v9fs_session_begin_cancel(struct v9fs_session_info *v9ses);
142 extern struct inode *v9fs_inode_from_fid(struct v9fs_session_info *v9ses,
148 extern struct inode *v9fs_inode_from_fid_dotl(struct v9fs_session_info *v9ses,
169 static inline int v9fs_proto_dotu(struct v9fs_session_info *v9ses) in v9fs_proto_dotu() argument
171 return v9ses->flags & V9FS_PROTO_2000U; in v9fs_proto_dotu()
174 static inline int v9fs_proto_dotl(struct v9fs_session_info *v9ses) in v9fs_proto_dotl() argument
176 return v9ses->flags & V9FS_PROTO_2000L; in v9fs_proto_dotl()
188 v9fs_get_inode_from_fid(struct v9fs_session_info *v9ses, struct p9_fid *fid, in v9fs_get_inode_from_fid() argument
[all …]
Dfid.c124 static int build_path_from_dentry(struct v9fs_session_info *v9ses, in build_path_from_dentry() argument
153 struct v9fs_session_info *v9ses; in v9fs_fid_lookup_with_uid() local
156 v9ses = v9fs_dentry2v9ses(dentry); in v9fs_fid_lookup_with_uid()
157 access = v9ses->flags & V9FS_ACCESS_MASK; in v9fs_fid_lookup_with_uid()
166 down_read(&v9ses->rename_sem); in v9fs_fid_lookup_with_uid()
177 up_read(&v9ses->rename_sem); in v9fs_fid_lookup_with_uid()
186 if (v9fs_proto_dotu(v9ses) || v9fs_proto_dotl(v9ses)) in v9fs_fid_lookup_with_uid()
189 uname = v9ses->uname; in v9fs_fid_lookup_with_uid()
191 fid = p9_client_attach(v9ses->clnt, NULL, uname, uid, in v9fs_fid_lookup_with_uid()
192 v9ses->aname); in v9fs_fid_lookup_with_uid()
[all …]
Dvfs_inode_dotl.c109 struct v9fs_session_info *v9ses = sb->s_fs_info; in v9fs_qid_iget_dotl() local
129 retval = v9fs_init_inode(v9ses, inode, in v9fs_qid_iget_dotl()
149 v9fs_inode_from_fid_dotl(struct v9fs_session_info *v9ses, struct p9_fid *fid, in v9fs_inode_from_fid_dotl() argument
244 struct v9fs_session_info *v9ses; in v9fs_vfs_atomic_open_dotl() local
261 v9ses = v9fs_inode2v9ses(dir); in v9fs_vfs_atomic_open_dotl()
313 inode = v9fs_get_new_inode_from_fid(v9ses, fid, dir->i_sb); in v9fs_vfs_atomic_open_dotl()
327 if ((v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) && in v9fs_vfs_atomic_open_dotl()
351 if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) in v9fs_vfs_atomic_open_dotl()
383 struct v9fs_session_info *v9ses; in v9fs_vfs_mkdir_dotl() local
394 v9ses = v9fs_inode2v9ses(dir); in v9fs_vfs_mkdir_dotl()
[all …]
Dacl.c60 struct v9fs_session_info *v9ses; in v9fs_get_acl() local
62 v9ses = v9fs_inode2v9ses(inode); in v9fs_get_acl()
63 if (((v9ses->flags & V9FS_ACCESS_MASK) != V9FS_ACCESS_CLIENT) || in v9fs_get_acl()
64 ((v9ses->flags & V9FS_ACL_MASK) != V9FS_POSIX_ACL)) { in v9fs_get_acl()
102 struct v9fs_session_info *v9ses; in v9fs_iop_get_acl() local
107 v9ses = v9fs_inode2v9ses(inode); in v9fs_iop_get_acl()
108 if (((v9ses->flags & V9FS_ACCESS_MASK) != V9FS_ACCESS_CLIENT) || in v9fs_iop_get_acl()
109 ((v9ses->flags & V9FS_ACL_MASK) != V9FS_POSIX_ACL)) { in v9fs_iop_get_acl()
223 struct v9fs_session_info *v9ses; in v9fs_xattr_get_acl() local
227 v9ses = v9fs_dentry2v9ses(dentry); in v9fs_xattr_get_acl()
[all …]
Dvfs_file.c48 struct v9fs_session_info *v9ses; in v9fs_file_open() local
54 v9ses = v9fs_inode2v9ses(inode); in v9fs_file_open()
55 if (v9fs_proto_dotl(v9ses)) in v9fs_file_open()
59 v9fs_proto_dotu(v9ses)); in v9fs_file_open()
72 (!v9fs_proto_dotu(v9ses) && !v9fs_proto_dotl(v9ses))) in v9fs_file_open()
78 if ((v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) && in v9fs_file_open()
97 if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) in v9fs_file_open()
139 struct v9fs_session_info *v9ses; in v9fs_file_do_lock() local
175 v9ses = v9fs_inode2v9ses(file_inode(filp)); in v9fs_file_do_lock()
190 if (schedule_timeout_interruptible(v9ses->session_lock_timeout) in v9fs_file_do_lock()
Dvfs_dentry.c79 struct v9fs_session_info *v9ses; in v9fs_lookup_revalidate() local
85 v9ses = v9fs_inode2v9ses(inode); in v9fs_lookup_revalidate()
86 if (v9fs_proto_dotl(v9ses)) in v9fs_lookup_revalidate()
Dcache.h18 extern void v9fs_cache_session_get_cookie(struct v9fs_session_info *v9ses);
19 extern void v9fs_cache_session_put_cookie(struct v9fs_session_info *v9ses);
Dv9fs_vfs.h49 int v9fs_init_inode(struct v9fs_session_info *v9ses,