/openbmc/linux/fs/9p/ |
H A D | v9fs.c | 103 if (v9ses->debug) in v9fs_show_options() 117 if (v9ses->nodev) in v9fs_show_options() 119 if (v9ses->cache) in v9fs_show_options() 122 if (v9ses->cachetag && (v9ses->cache & CACHE_FSCACHE)) in v9fs_show_options() 173 v9ses->afid = ~0; in v9fs_parse_options() 174 v9ses->debug = 0; in v9fs_parse_options() 398 if (!v9ses->uname) in v9fs_session_init() 402 if (!v9ses->aname) in v9fs_session_init() 430 v9ses->maxdata = v9ses->clnt->msize - P9_IOHDRSZ; in v9fs_session_init() 443 if (!(v9fs_proto_dotu(v9ses) || v9fs_proto_dotl(v9ses)) && in v9fs_session_init() [all …]
|
H A D | vfs_super.c | 64 if (v9fs_proto_dotl(v9ses)) { in v9fs_fill_super() 79 if (!v9ses->cache) { in v9fs_fill_super() 120 if (!v9ses) in v9fs_mount() 155 if (v9fs_proto_dotl(v9ses)) { in v9fs_mount() 191 v9fs_session_close(v9ses); in v9fs_mount() 193 kfree(v9ses); in v9fs_mount() 222 v9fs_session_cancel(v9ses); in v9fs_kill_super() 223 v9fs_session_close(v9ses); in v9fs_kill_super() 224 kfree(v9ses); in v9fs_kill_super() 234 v9ses = sb->s_fs_info; in v9fs_umount_begin() [all …]
|
H A D | v9fs.h | 160 return v9ses->fscache; in v9fs_session_cache() 169 struct p9_fid *v9fs_session_init(struct v9fs_session_info *v9ses, 171 extern void v9fs_session_close(struct v9fs_session_info *v9ses); 212 return v9ses->flags & V9FS_PROTO_2000U; in v9fs_proto_dotu() 217 return v9ses->flags & V9FS_PROTO_2000L; in v9fs_proto_dotl() 232 if (v9fs_proto_dotl(v9ses)) in v9fs_get_inode_from_fid() 233 return v9fs_inode_from_fid_dotl(v9ses, fid, sb, 0); in v9fs_get_inode_from_fid() 235 return v9fs_inode_from_fid(v9ses, fid, sb, 0); in v9fs_get_inode_from_fid() 250 if (v9fs_proto_dotl(v9ses)) in v9fs_get_new_inode_from_fid() 251 return v9fs_inode_from_fid_dotl(v9ses, fid, sb, 1); in v9fs_get_new_inode_from_fid() [all …]
|
H A D | vfs_inode.c | 52 if (v9fs_proto_dotu(v9ses)) { in unixmode2p9mode() 53 if (v9ses->nodev == 0) { in unixmode2p9mode() 87 if (v9fs_proto_dotu(v9ses)) { in p9mode2perm() 121 && (v9ses->nodev == 0)) in p9mode2unixmode() 124 && (v9ses->nodev == 0)) in p9mode2unixmode() 127 && (v9ses->nodev == 0)) { in p9mode2unixmode() 298 if (!v9fs_proto_dotu(v9ses) && !v9fs_proto_dotl(v9ses)) { in v9fs_init_inode() 305 if (v9fs_proto_dotl(v9ses)) in v9fs_init_inode() 555 if (v9fs_proto_dotl(v9ses)) in v9fs_remove() 848 v9fs_fid_add_modes(fid, v9ses->flags, v9ses->cache, file->f_flags); in v9fs_vfs_atomic_open() [all …]
|
H A D | fid.c | 176 struct v9fs_session_info *v9ses; in v9fs_fid_lookup_with_uid() local 179 v9ses = v9fs_dentry2v9ses(dentry); in v9fs_fid_lookup_with_uid() 189 down_read(&v9ses->rename_sem); in v9fs_fid_lookup_with_uid() 200 up_read(&v9ses->rename_sem); in v9fs_fid_lookup_with_uid() 209 if (v9fs_proto_dotu(v9ses) || v9fs_proto_dotl(v9ses)) in v9fs_fid_lookup_with_uid() 212 uname = v9ses->uname; in v9fs_fid_lookup_with_uid() 215 v9ses->aname); in v9fs_fid_lookup_with_uid() 231 down_read(&v9ses->rename_sem); in v9fs_fid_lookup_with_uid() 274 up_read(&v9ses->rename_sem); in v9fs_fid_lookup_with_uid() 292 struct v9fs_session_info *v9ses; in v9fs_fid_lookup() local [all …]
|
H A D | cache.c | 19 int v9fs_cache_session_get_cookie(struct v9fs_session_info *v9ses, in v9fs_cache_session_get_cookie() argument 26 dev_name, v9ses->cachetag ?: v9ses->aname); in v9fs_cache_session_get_cookie() 36 v9ses, vcookie, name); in v9fs_cache_session_get_cookie() 45 v9ses->fscache = vcookie; in v9fs_cache_session_get_cookie() 53 struct v9fs_session_info *v9ses; in v9fs_cache_inode_get_cookie() local 64 v9ses = v9fs_inode2v9ses(inode); in v9fs_cache_inode_get_cookie() 66 fscache_acquire_cookie(v9fs_session_cache(v9ses), in v9fs_cache_inode_get_cookie()
|
H A D | acl.c | 82 struct v9fs_session_info *v9ses; in v9fs_get_acl() local 84 v9ses = v9fs_inode2v9ses(inode); in v9fs_get_acl() 86 ((v9ses->flags & V9FS_ACL_MASK) != V9FS_POSIX_ACL)) { in v9fs_get_acl() 124 struct v9fs_session_info *v9ses; in v9fs_iop_get_inode_acl() local 129 v9ses = v9fs_inode2v9ses(inode); in v9fs_iop_get_inode_acl() 131 ((v9ses->flags & V9FS_ACL_MASK) != V9FS_POSIX_ACL)) { in v9fs_iop_get_inode_acl() 145 struct v9fs_session_info *v9ses; in v9fs_iop_get_acl() local 147 v9ses = v9fs_dentry2v9ses(dentry); in v9fs_iop_get_acl() 149 if ((v9ses->flags & V9FS_ACCESS_MASK) != V9FS_ACCESS_CLIENT) in v9fs_iop_get_acl() 161 struct v9fs_session_info *v9ses; in v9fs_iop_set_acl() local [all …]
|
H A D | vfs_inode_dotl.c | 241 struct v9fs_session_info *v9ses; in v9fs_vfs_atomic_open_dotl() local 258 v9ses = v9fs_inode2v9ses(dir); in v9fs_vfs_atomic_open_dotl() 334 v9fs_fid_add_modes(ofid, v9ses->flags, v9ses->cache, flags); in v9fs_vfs_atomic_open_dotl() 360 struct v9fs_session_info *v9ses; in v9fs_vfs_mkdir_dotl() local 370 v9ses = v9fs_inode2v9ses(dir); in v9fs_vfs_mkdir_dotl() 446 struct v9fs_session_info *v9ses; in v9fs_vfs_getattr_dotl() local 456 } else if (v9ses->cache) { in v9fs_vfs_getattr_dotl() 712 struct v9fs_session_info *v9ses; in v9fs_vfs_symlink_dotl() local 716 v9ses = v9fs_inode2v9ses(dir); in v9fs_vfs_symlink_dotl() 792 v9ses = v9fs_inode2v9ses(dir); in v9fs_vfs_link_dotl() [all …]
|
H A D | vfs_file.c | 43 struct v9fs_session_info *v9ses; in v9fs_file_open() local 48 v9ses = v9fs_inode2v9ses(inode); in v9fs_file_open() 49 if (v9fs_proto_dotl(v9ses)) in v9fs_file_open() 53 v9fs_proto_dotu(v9ses)); in v9fs_file_open() 60 if ((v9ses->cache & CACHE_WRITEBACK) && (omode & P9_OWRITE)) { in v9fs_file_open() 78 (!v9fs_proto_dotu(v9ses) && !v9fs_proto_dotl(v9ses))) in v9fs_file_open() 85 if (v9ses->cache & CACHE_FSCACHE) in v9fs_file_open() 89 v9fs_fid_add_modes(fid, v9ses->flags, v9ses->cache, file->f_flags); in v9fs_file_open() 125 struct v9fs_session_info *v9ses; in v9fs_file_do_lock() local 160 v9ses = v9fs_inode2v9ses(file_inode(filp)); in v9fs_file_do_lock() [all …]
|
H A D | vfs_dentry.c | 80 struct v9fs_session_info *v9ses; in v9fs_lookup_revalidate() local 86 v9ses = v9fs_inode2v9ses(inode); in v9fs_lookup_revalidate() 87 if (v9fs_proto_dotl(v9ses)) in v9fs_lookup_revalidate()
|
H A D | cache.h | 14 extern int v9fs_cache_session_get_cookie(struct v9fs_session_info *v9ses,
|
H A D | v9fs_vfs.h | 46 int v9fs_init_inode(struct v9fs_session_info *v9ses,
|