/openbmc/linux/fs/9p/ |
H A D | v9fs.c | 101 struct v9fs_session_info *v9ses = root->d_sb->s_fs_info; in v9fs_show_options() local 103 if (v9ses->debug) in v9fs_show_options() 104 seq_printf(m, ",debug=%x", v9ses->debug); in v9fs_show_options() 105 if (!uid_eq(v9ses->dfltuid, V9FS_DEFUID)) in v9fs_show_options() 107 from_kuid_munged(&init_user_ns, v9ses->dfltuid)); in v9fs_show_options() 108 if (!gid_eq(v9ses->dfltgid, V9FS_DEFGID)) in v9fs_show_options() 110 from_kgid_munged(&init_user_ns, v9ses->dfltgid)); in v9fs_show_options() 111 if (v9ses->afid != ~0) in v9fs_show_options() 112 seq_printf(m, ",afid=%u", v9ses->afid); in v9fs_show_options() 113 if (strcmp(v9ses->uname, V9FS_DEFUSER) != 0) in v9fs_show_options() [all …]
|
H A D | vfs_super.c | 55 v9fs_fill_super(struct super_block *sb, struct v9fs_session_info *v9ses, in v9fs_fill_super() argument 61 sb->s_blocksize_bits = fls(v9ses->maxdata - 1); in v9fs_fill_super() 64 if (v9fs_proto_dotl(v9ses)) { in v9fs_fill_super() 66 if (!(v9ses->flags & V9FS_NO_XATTR)) in v9fs_fill_super() 79 if (!v9ses->cache) { in v9fs_fill_super() 83 sb->s_bdi->ra_pages = v9ses->maxdata >> PAGE_SHIFT; in v9fs_fill_super() 84 sb->s_bdi->io_pages = v9ses->maxdata >> PAGE_SHIFT; in v9fs_fill_super() 90 if ((v9ses->flags & V9FS_ACL_MASK) == V9FS_POSIX_ACL) in v9fs_fill_super() 112 struct v9fs_session_info *v9ses = NULL; in v9fs_mount() local 119 v9ses = kzalloc(sizeof(struct v9fs_session_info), GFP_KERNEL); in v9fs_mount() [all …]
|
H A D | v9fs.h | 157 static inline struct fscache_volume *v9fs_session_cache(struct v9fs_session_info *v9ses) in v9fs_session_cache() argument 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); 172 extern void v9fs_session_cancel(struct v9fs_session_info *v9ses); 173 extern void v9fs_session_begin_cancel(struct v9fs_session_info *v9ses); 182 extern struct inode *v9fs_inode_from_fid(struct v9fs_session_info *v9ses, 189 extern struct inode *v9fs_inode_from_fid_dotl(struct v9fs_session_info *v9ses, 210 static inline int v9fs_proto_dotu(struct v9fs_session_info *v9ses) in v9fs_proto_dotu() argument 212 return v9ses->flags & V9FS_PROTO_2000U; in v9fs_proto_dotu() [all …]
|
H A D | vfs_inode.c | 45 static u32 unixmode2p9mode(struct v9fs_session_info *v9ses, umode_t mode) in unixmode2p9mode() argument 52 if (v9fs_proto_dotu(v9ses)) { in unixmode2p9mode() 53 if (v9ses->nodev == 0) { in unixmode2p9mode() 80 static int p9mode2perm(struct v9fs_session_info *v9ses, in p9mode2perm() argument 87 if (v9fs_proto_dotu(v9ses)) { in p9mode2perm() 107 static umode_t p9mode2unixmode(struct v9fs_session_info *v9ses, in p9mode2unixmode() argument 114 res = p9mode2perm(v9ses, stat); in p9mode2unixmode() 118 else if ((mode & P9_DMSYMLINK) && (v9fs_proto_dotu(v9ses))) in p9mode2unixmode() 120 else if ((mode & P9_DMSOCKET) && (v9fs_proto_dotu(v9ses)) in p9mode2unixmode() 121 && (v9ses->nodev == 0)) in p9mode2unixmode() [all …]
|
H A D | fid.c | 146 static int build_path_from_dentry(struct v9fs_session_info *v9ses, in build_path_from_dentry() argument 175 struct v9fs_session_info *v9ses; in v9fs_fid_lookup_with_uid() local 178 v9ses = v9fs_dentry2v9ses(dentry); in v9fs_fid_lookup_with_uid() 179 access = v9ses->flags & V9FS_ACCESS_MASK; in v9fs_fid_lookup_with_uid() 188 down_read(&v9ses->rename_sem); in v9fs_fid_lookup_with_uid() 199 up_read(&v9ses->rename_sem); in v9fs_fid_lookup_with_uid() 208 if (v9fs_proto_dotu(v9ses) || v9fs_proto_dotl(v9ses)) in v9fs_fid_lookup_with_uid() 211 uname = v9ses->uname; in v9fs_fid_lookup_with_uid() 213 fid = p9_client_attach(v9ses->clnt, NULL, uname, uid, in v9fs_fid_lookup_with_uid() 214 v9ses->aname); in v9fs_fid_lookup_with_uid() [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 | vfs_inode_dotl.c | 105 struct v9fs_session_info *v9ses = sb->s_fs_info; in v9fs_qid_iget_dotl() local 125 retval = v9fs_init_inode(v9ses, inode, in v9fs_qid_iget_dotl() 146 v9fs_inode_from_fid_dotl(struct v9fs_session_info *v9ses, struct p9_fid *fid, in v9fs_inode_from_fid_dotl() argument 241 struct v9fs_session_info *v9ses; in v9fs_vfs_atomic_open_dotl() local 258 v9ses = v9fs_inode2v9ses(dir); in v9fs_vfs_atomic_open_dotl() 290 if ((v9ses->cache & CACHE_WRITEBACK) && (p9_omode & P9_OWRITE)) { in v9fs_vfs_atomic_open_dotl() 310 inode = v9fs_get_new_inode_from_fid(v9ses, fid, dir->i_sb); in v9fs_vfs_atomic_open_dotl() 328 if (v9ses->cache & CACHE_FSCACHE) { 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 [all …]
|
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() 85 if (((v9ses->flags & V9FS_ACCESS_MASK) != V9FS_ACCESS_CLIENT) || 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() 130 if (((v9ses->flags & V9FS_ACCESS_MASK) != V9FS_ACCESS_CLIENT) || 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() [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,
|