v9ses 60 fs/9p/acl.c struct v9fs_session_info *v9ses; v9ses 62 fs/9p/acl.c v9ses = v9fs_inode2v9ses(inode); v9ses 63 fs/9p/acl.c if (((v9ses->flags & V9FS_ACCESS_MASK) != V9FS_ACCESS_CLIENT) || v9ses 64 fs/9p/acl.c ((v9ses->flags & V9FS_ACL_MASK) != V9FS_POSIX_ACL)) { v9ses 102 fs/9p/acl.c struct v9fs_session_info *v9ses; v9ses 104 fs/9p/acl.c v9ses = v9fs_inode2v9ses(inode); v9ses 105 fs/9p/acl.c if (((v9ses->flags & V9FS_ACCESS_MASK) != V9FS_ACCESS_CLIENT) || v9ses 106 fs/9p/acl.c ((v9ses->flags & V9FS_ACL_MASK) != V9FS_POSIX_ACL)) { v9ses 219 fs/9p/acl.c struct v9fs_session_info *v9ses; v9ses 223 fs/9p/acl.c v9ses = v9fs_dentry2v9ses(dentry); v9ses 227 fs/9p/acl.c if ((v9ses->flags & V9FS_ACCESS_MASK) != V9FS_ACCESS_CLIENT) v9ses 248 fs/9p/acl.c struct v9fs_session_info *v9ses; v9ses 250 fs/9p/acl.c v9ses = v9fs_dentry2v9ses(dentry); v9ses 255 fs/9p/acl.c if ((v9ses->flags & V9FS_ACCESS_MASK) != V9FS_ACCESS_CLIENT) v9ses 34 fs/9p/cache.c int v9fs_random_cachetag(struct v9fs_session_info *v9ses) v9ses 36 fs/9p/cache.c v9ses->cachetag = kmalloc(CACHETAG_LEN, GFP_KERNEL); v9ses 37 fs/9p/cache.c if (!v9ses->cachetag) v9ses 40 fs/9p/cache.c return scnprintf(v9ses->cachetag, CACHETAG_LEN, "%lu", jiffies); v9ses 48 fs/9p/cache.c void v9fs_cache_session_get_cookie(struct v9fs_session_info *v9ses) v9ses 51 fs/9p/cache.c if (!v9ses->cachetag) { v9ses 52 fs/9p/cache.c if (v9fs_random_cachetag(v9ses) < 0) { v9ses 53 fs/9p/cache.c v9ses->fscache = NULL; v9ses 54 fs/9p/cache.c kfree(v9ses->cachetag); v9ses 55 fs/9p/cache.c v9ses->cachetag = NULL; v9ses 60 fs/9p/cache.c v9ses->fscache = fscache_acquire_cookie(v9fs_cache_netfs.primary_index, v9ses 62 fs/9p/cache.c v9ses->cachetag, v9ses 63 fs/9p/cache.c strlen(v9ses->cachetag), v9ses 65 fs/9p/cache.c v9ses, 0, true); v9ses 67 fs/9p/cache.c v9ses, v9ses->fscache); v9ses 70 fs/9p/cache.c void v9fs_cache_session_put_cookie(struct v9fs_session_info *v9ses) v9ses 73 fs/9p/cache.c v9ses, v9ses->fscache); v9ses 74 fs/9p/cache.c fscache_relinquish_cookie(v9ses->fscache, NULL, false); v9ses 75 fs/9p/cache.c v9ses->fscache = NULL; v9ses 105 fs/9p/cache.c struct v9fs_session_info *v9ses; v9ses 114 fs/9p/cache.c v9ses = v9fs_inode2v9ses(inode); v9ses 115 fs/9p/cache.c v9inode->fscache = fscache_acquire_cookie(v9ses->fscache, v9ses 176 fs/9p/cache.c struct v9fs_session_info *v9ses; v9ses 187 fs/9p/cache.c v9ses = v9fs_inode2v9ses(inode); v9ses 188 fs/9p/cache.c v9inode->fscache = fscache_acquire_cookie(v9ses->fscache, v9ses 18 fs/9p/cache.h extern void v9fs_cache_session_get_cookie(struct v9fs_session_info *v9ses); v9ses 19 fs/9p/cache.h extern void v9fs_cache_session_put_cookie(struct v9fs_session_info *v9ses); v9ses 78 fs/9p/fid.c static int build_path_from_dentry(struct v9fs_session_info *v9ses, v9ses 107 fs/9p/fid.c struct v9fs_session_info *v9ses; v9ses 110 fs/9p/fid.c v9ses = v9fs_dentry2v9ses(dentry); v9ses 111 fs/9p/fid.c access = v9ses->flags & V9FS_ACCESS_MASK; v9ses 120 fs/9p/fid.c down_read(&v9ses->rename_sem); v9ses 128 fs/9p/fid.c up_read(&v9ses->rename_sem); v9ses 137 fs/9p/fid.c if (v9fs_proto_dotu(v9ses) || v9fs_proto_dotl(v9ses)) v9ses 140 fs/9p/fid.c uname = v9ses->uname; v9ses 142 fs/9p/fid.c fid = p9_client_attach(v9ses->clnt, NULL, uname, uid, v9ses 143 fs/9p/fid.c v9ses->aname); v9ses 157 fs/9p/fid.c down_read(&v9ses->rename_sem); v9ses 158 fs/9p/fid.c n = build_path_from_dentry(v9ses, dentry, &wnames); v9ses 202 fs/9p/fid.c up_read(&v9ses->rename_sem); v9ses 220 fs/9p/fid.c struct v9fs_session_info *v9ses; v9ses 222 fs/9p/fid.c v9ses = v9fs_dentry2v9ses(dentry); v9ses 223 fs/9p/fid.c access = v9ses->flags & V9FS_ACCESS_MASK; v9ses 233 fs/9p/fid.c uid = v9ses->uid; v9ses 108 fs/9p/v9fs.c struct v9fs_session_info *v9ses = root->d_sb->s_fs_info; v9ses 110 fs/9p/v9fs.c if (v9ses->debug) v9ses 111 fs/9p/v9fs.c seq_printf(m, ",debug=%x", v9ses->debug); v9ses 112 fs/9p/v9fs.c if (!uid_eq(v9ses->dfltuid, V9FS_DEFUID)) v9ses 114 fs/9p/v9fs.c from_kuid_munged(&init_user_ns, v9ses->dfltuid)); v9ses 115 fs/9p/v9fs.c if (!gid_eq(v9ses->dfltgid, V9FS_DEFGID)) v9ses 117 fs/9p/v9fs.c from_kgid_munged(&init_user_ns, v9ses->dfltgid)); v9ses 118 fs/9p/v9fs.c if (v9ses->afid != ~0) v9ses 119 fs/9p/v9fs.c seq_printf(m, ",afid=%u", v9ses->afid); v9ses 120 fs/9p/v9fs.c if (strcmp(v9ses->uname, V9FS_DEFUSER) != 0) v9ses 121 fs/9p/v9fs.c seq_printf(m, ",uname=%s", v9ses->uname); v9ses 122 fs/9p/v9fs.c if (strcmp(v9ses->aname, V9FS_DEFANAME) != 0) v9ses 123 fs/9p/v9fs.c seq_printf(m, ",aname=%s", v9ses->aname); v9ses 124 fs/9p/v9fs.c if (v9ses->nodev) v9ses 126 fs/9p/v9fs.c if (v9ses->cache) v9ses 127 fs/9p/v9fs.c seq_printf(m, ",%s", v9fs_cache_modes[v9ses->cache]); v9ses 129 fs/9p/v9fs.c if (v9ses->cachetag && v9ses->cache == CACHE_FSCACHE) v9ses 130 fs/9p/v9fs.c seq_printf(m, ",cachetag=%s", v9ses->cachetag); v9ses 133 fs/9p/v9fs.c switch (v9ses->flags & V9FS_ACCESS_MASK) { v9ses 145 fs/9p/v9fs.c from_kuid_munged(&init_user_ns, v9ses->uid)); v9ses 149 fs/9p/v9fs.c if (v9ses->flags & V9FS_POSIX_ACL) v9ses 152 fs/9p/v9fs.c return p9_show_client_options(m, v9ses->clnt); v9ses 162 fs/9p/v9fs.c static int v9fs_parse_options(struct v9fs_session_info *v9ses, char *opts) v9ses 172 fs/9p/v9fs.c v9ses->afid = ~0; v9ses 173 fs/9p/v9fs.c v9ses->debug = 0; v9ses 174 fs/9p/v9fs.c v9ses->cache = CACHE_NONE; v9ses 176 fs/9p/v9fs.c v9ses->cachetag = NULL; v9ses 178 fs/9p/v9fs.c v9ses->session_lock_timeout = P9_LOCK_TIMEOUT; v9ses 203 fs/9p/v9fs.c v9ses->debug = option; v9ses 218 fs/9p/v9fs.c v9ses->dfltuid = make_kuid(current_user_ns(), option); v9ses 219 fs/9p/v9fs.c if (!uid_valid(v9ses->dfltuid)) { v9ses 233 fs/9p/v9fs.c v9ses->dfltgid = make_kgid(current_user_ns(), option); v9ses 234 fs/9p/v9fs.c if (!gid_valid(v9ses->dfltgid)) { v9ses 247 fs/9p/v9fs.c v9ses->afid = option; v9ses 251 fs/9p/v9fs.c kfree(v9ses->uname); v9ses 252 fs/9p/v9fs.c v9ses->uname = match_strdup(&args[0]); v9ses 253 fs/9p/v9fs.c if (!v9ses->uname) { v9ses 259 fs/9p/v9fs.c kfree(v9ses->aname); v9ses 260 fs/9p/v9fs.c v9ses->aname = match_strdup(&args[0]); v9ses 261 fs/9p/v9fs.c if (!v9ses->aname) { v9ses 267 fs/9p/v9fs.c v9ses->nodev = 1; v9ses 270 fs/9p/v9fs.c v9ses->cache = CACHE_LOOSE; v9ses 273 fs/9p/v9fs.c v9ses->cache = CACHE_FSCACHE; v9ses 276 fs/9p/v9fs.c v9ses->cache = CACHE_MMAP; v9ses 280 fs/9p/v9fs.c kfree(v9ses->cachetag); v9ses 281 fs/9p/v9fs.c v9ses->cachetag = match_strdup(&args[0]); v9ses 282 fs/9p/v9fs.c if (!v9ses->cachetag) { v9ses 300 fs/9p/v9fs.c v9ses->cache = r; v9ses 314 fs/9p/v9fs.c v9ses->flags &= ~V9FS_ACCESS_MASK; v9ses 316 fs/9p/v9fs.c v9ses->flags |= V9FS_ACCESS_USER; v9ses 318 fs/9p/v9fs.c v9ses->flags |= V9FS_ACCESS_ANY; v9ses 320 fs/9p/v9fs.c v9ses->flags |= V9FS_ACCESS_CLIENT; v9ses 323 fs/9p/v9fs.c v9ses->flags |= V9FS_ACCESS_SINGLE; v9ses 332 fs/9p/v9fs.c v9ses->uid = make_kuid(current_user_ns(), uid); v9ses 333 fs/9p/v9fs.c if (!uid_valid(v9ses->uid)) { v9ses 344 fs/9p/v9fs.c v9ses->flags |= V9FS_POSIX_ACL; v9ses 365 fs/9p/v9fs.c v9ses->session_lock_timeout = (long)option * HZ; v9ses 387 fs/9p/v9fs.c struct p9_fid *v9fs_session_init(struct v9fs_session_info *v9ses, v9ses 393 fs/9p/v9fs.c v9ses->uname = kstrdup(V9FS_DEFUSER, GFP_KERNEL); v9ses 394 fs/9p/v9fs.c if (!v9ses->uname) v9ses 397 fs/9p/v9fs.c v9ses->aname = kstrdup(V9FS_DEFANAME, GFP_KERNEL); v9ses 398 fs/9p/v9fs.c if (!v9ses->aname) v9ses 400 fs/9p/v9fs.c init_rwsem(&v9ses->rename_sem); v9ses 402 fs/9p/v9fs.c v9ses->uid = INVALID_UID; v9ses 403 fs/9p/v9fs.c v9ses->dfltuid = V9FS_DEFUID; v9ses 404 fs/9p/v9fs.c v9ses->dfltgid = V9FS_DEFGID; v9ses 406 fs/9p/v9fs.c v9ses->clnt = p9_client_create(dev_name, data); v9ses 407 fs/9p/v9fs.c if (IS_ERR(v9ses->clnt)) { v9ses 408 fs/9p/v9fs.c rc = PTR_ERR(v9ses->clnt); v9ses 413 fs/9p/v9fs.c v9ses->flags = V9FS_ACCESS_USER; v9ses 415 fs/9p/v9fs.c if (p9_is_proto_dotl(v9ses->clnt)) { v9ses 416 fs/9p/v9fs.c v9ses->flags = V9FS_ACCESS_CLIENT; v9ses 417 fs/9p/v9fs.c v9ses->flags |= V9FS_PROTO_2000L; v9ses 418 fs/9p/v9fs.c } else if (p9_is_proto_dotu(v9ses->clnt)) { v9ses 419 fs/9p/v9fs.c v9ses->flags |= V9FS_PROTO_2000U; v9ses 422 fs/9p/v9fs.c rc = v9fs_parse_options(v9ses, data); v9ses 426 fs/9p/v9fs.c v9ses->maxdata = v9ses->clnt->msize - P9_IOHDRSZ; v9ses 428 fs/9p/v9fs.c if (!v9fs_proto_dotl(v9ses) && v9ses 429 fs/9p/v9fs.c ((v9ses->flags & V9FS_ACCESS_MASK) == V9FS_ACCESS_CLIENT)) { v9ses 434 fs/9p/v9fs.c v9ses->flags &= ~V9FS_ACCESS_MASK; v9ses 435 fs/9p/v9fs.c v9ses->flags |= V9FS_ACCESS_USER; v9ses 439 fs/9p/v9fs.c if (!(v9fs_proto_dotu(v9ses) || v9fs_proto_dotl(v9ses)) && v9ses 440 fs/9p/v9fs.c ((v9ses->flags&V9FS_ACCESS_MASK) == V9FS_ACCESS_USER)) { v9ses 442 fs/9p/v9fs.c v9ses->flags &= ~V9FS_ACCESS_MASK; v9ses 443 fs/9p/v9fs.c v9ses->flags |= V9FS_ACCESS_ANY; v9ses 444 fs/9p/v9fs.c v9ses->uid = INVALID_UID; v9ses 446 fs/9p/v9fs.c if (!v9fs_proto_dotl(v9ses) || v9ses 447 fs/9p/v9fs.c !((v9ses->flags & V9FS_ACCESS_MASK) == V9FS_ACCESS_CLIENT)) { v9ses 452 fs/9p/v9fs.c v9ses->flags &= ~V9FS_ACL_MASK; v9ses 455 fs/9p/v9fs.c fid = p9_client_attach(v9ses->clnt, NULL, v9ses->uname, INVALID_UID, v9ses 456 fs/9p/v9fs.c v9ses->aname); v9ses 463 fs/9p/v9fs.c if ((v9ses->flags & V9FS_ACCESS_MASK) == V9FS_ACCESS_SINGLE) v9ses 464 fs/9p/v9fs.c fid->uid = v9ses->uid; v9ses 470 fs/9p/v9fs.c v9fs_cache_session_get_cookie(v9ses); v9ses 473 fs/9p/v9fs.c list_add(&v9ses->slist, &v9fs_sessionlist); v9ses 480 fs/9p/v9fs.c kfree(v9ses->cachetag); v9ses 482 fs/9p/v9fs.c p9_client_destroy(v9ses->clnt); v9ses 484 fs/9p/v9fs.c kfree(v9ses->uname); v9ses 485 fs/9p/v9fs.c kfree(v9ses->aname); v9ses 495 fs/9p/v9fs.c void v9fs_session_close(struct v9fs_session_info *v9ses) v9ses 497 fs/9p/v9fs.c if (v9ses->clnt) { v9ses 498 fs/9p/v9fs.c p9_client_destroy(v9ses->clnt); v9ses 499 fs/9p/v9fs.c v9ses->clnt = NULL; v9ses 503 fs/9p/v9fs.c if (v9ses->fscache) { v9ses 504 fs/9p/v9fs.c v9fs_cache_session_put_cookie(v9ses); v9ses 505 fs/9p/v9fs.c kfree(v9ses->cachetag); v9ses 508 fs/9p/v9fs.c kfree(v9ses->uname); v9ses 509 fs/9p/v9fs.c kfree(v9ses->aname); v9ses 512 fs/9p/v9fs.c list_del(&v9ses->slist); v9ses 523 fs/9p/v9fs.c void v9fs_session_cancel(struct v9fs_session_info *v9ses) { v9ses 524 fs/9p/v9fs.c p9_debug(P9_DEBUG_ERROR, "cancel session %p\n", v9ses); v9ses 525 fs/9p/v9fs.c p9_client_disconnect(v9ses->clnt); v9ses 535 fs/9p/v9fs.c void v9fs_session_begin_cancel(struct v9fs_session_info *v9ses) v9ses 537 fs/9p/v9fs.c p9_debug(P9_DEBUG_ERROR, "begin cancel session %p\n", v9ses); v9ses 538 fs/9p/v9fs.c p9_client_begin_disconnect(v9ses->clnt); v9ses 557 fs/9p/v9fs.c struct v9fs_session_info *v9ses; v9ses 560 fs/9p/v9fs.c list_for_each_entry(v9ses, &v9fs_sessionlist, slist) { v9ses 561 fs/9p/v9fs.c if (v9ses->cachetag) { v9ses 562 fs/9p/v9fs.c n = snprintf(buf, limit, "%s\n", v9ses->cachetag); v9ses 131 fs/9p/v9fs.h extern void v9fs_session_close(struct v9fs_session_info *v9ses); v9ses 132 fs/9p/v9fs.h extern void v9fs_session_cancel(struct v9fs_session_info *v9ses); v9ses 133 fs/9p/v9fs.h extern void v9fs_session_begin_cancel(struct v9fs_session_info *v9ses); v9ses 141 fs/9p/v9fs.h extern struct inode *v9fs_inode_from_fid(struct v9fs_session_info *v9ses, v9ses 147 fs/9p/v9fs.h extern struct inode *v9fs_inode_from_fid_dotl(struct v9fs_session_info *v9ses, v9ses 168 fs/9p/v9fs.h static inline int v9fs_proto_dotu(struct v9fs_session_info *v9ses) v9ses 170 fs/9p/v9fs.h return v9ses->flags & V9FS_PROTO_2000U; v9ses 173 fs/9p/v9fs.h static inline int v9fs_proto_dotl(struct v9fs_session_info *v9ses) v9ses 175 fs/9p/v9fs.h return v9ses->flags & V9FS_PROTO_2000L; v9ses 187 fs/9p/v9fs.h v9fs_get_inode_from_fid(struct v9fs_session_info *v9ses, struct p9_fid *fid, v9ses 190 fs/9p/v9fs.h if (v9fs_proto_dotl(v9ses)) v9ses 191 fs/9p/v9fs.h return v9fs_inode_from_fid_dotl(v9ses, fid, sb, 0); v9ses 193 fs/9p/v9fs.h return v9fs_inode_from_fid(v9ses, fid, sb, 0); v9ses 205 fs/9p/v9fs.h v9fs_get_new_inode_from_fid(struct v9fs_session_info *v9ses, struct p9_fid *fid, v9ses 208 fs/9p/v9fs.h if (v9fs_proto_dotl(v9ses)) v9ses 209 fs/9p/v9fs.h return v9fs_inode_from_fid_dotl(v9ses, fid, sb, 1); v9ses 211 fs/9p/v9fs.h return v9fs_inode_from_fid(v9ses, fid, sb, 1); v9ses 48 fs/9p/v9fs_vfs.h int v9fs_init_inode(struct v9fs_session_info *v9ses, v9ses 78 fs/9p/vfs_dentry.c struct v9fs_session_info *v9ses; v9ses 83 fs/9p/vfs_dentry.c v9ses = v9fs_inode2v9ses(inode); v9ses 84 fs/9p/vfs_dentry.c if (v9fs_proto_dotl(v9ses)) v9ses 48 fs/9p/vfs_file.c struct v9fs_session_info *v9ses; v9ses 54 fs/9p/vfs_file.c v9ses = v9fs_inode2v9ses(inode); v9ses 55 fs/9p/vfs_file.c if (v9fs_proto_dotl(v9ses)) v9ses 59 fs/9p/vfs_file.c v9fs_proto_dotu(v9ses)); v9ses 72 fs/9p/vfs_file.c (!v9fs_proto_dotu(v9ses) && !v9fs_proto_dotl(v9ses))) v9ses 78 fs/9p/vfs_file.c if ((v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) && v9ses 97 fs/9p/vfs_file.c if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) v9ses 142 fs/9p/vfs_file.c struct v9fs_session_info *v9ses; v9ses 178 fs/9p/vfs_file.c v9ses = v9fs_inode2v9ses(file_inode(filp)); v9ses 193 fs/9p/vfs_file.c if (schedule_timeout_interruptible(v9ses->session_lock_timeout) v9ses 49 fs/9p/vfs_inode.c static u32 unixmode2p9mode(struct v9fs_session_info *v9ses, umode_t mode) v9ses 55 fs/9p/vfs_inode.c if (v9fs_proto_dotu(v9ses)) { v9ses 56 fs/9p/vfs_inode.c if (v9ses->nodev == 0) { v9ses 83 fs/9p/vfs_inode.c static int p9mode2perm(struct v9fs_session_info *v9ses, v9ses 90 fs/9p/vfs_inode.c if (v9fs_proto_dotu(v9ses)) { v9ses 110 fs/9p/vfs_inode.c static umode_t p9mode2unixmode(struct v9fs_session_info *v9ses, v9ses 117 fs/9p/vfs_inode.c res = p9mode2perm(v9ses, stat); v9ses 121 fs/9p/vfs_inode.c else if ((mode & P9_DMSYMLINK) && (v9fs_proto_dotu(v9ses))) v9ses 123 fs/9p/vfs_inode.c else if ((mode & P9_DMSOCKET) && (v9fs_proto_dotu(v9ses)) v9ses 124 fs/9p/vfs_inode.c && (v9ses->nodev == 0)) v9ses 126 fs/9p/vfs_inode.c else if ((mode & P9_DMNAMEDPIPE) && (v9fs_proto_dotu(v9ses)) v9ses 127 fs/9p/vfs_inode.c && (v9ses->nodev == 0)) v9ses 129 fs/9p/vfs_inode.c else if ((mode & P9_DMDEVICE) && (v9fs_proto_dotu(v9ses)) v9ses 130 fs/9p/vfs_inode.c && (v9ses->nodev == 0)) { v9ses 250 fs/9p/vfs_inode.c int v9fs_init_inode(struct v9fs_session_info *v9ses, v9ses 266 fs/9p/vfs_inode.c if (v9fs_proto_dotl(v9ses)) { v9ses 268 fs/9p/vfs_inode.c } else if (v9fs_proto_dotu(v9ses)) { v9ses 279 fs/9p/vfs_inode.c if (v9fs_proto_dotl(v9ses)) { v9ses 281 fs/9p/vfs_inode.c if (v9ses->cache == CACHE_LOOSE || v9ses 282 fs/9p/vfs_inode.c v9ses->cache == CACHE_FSCACHE) v9ses 285 fs/9p/vfs_inode.c else if (v9ses->cache == CACHE_MMAP) v9ses 291 fs/9p/vfs_inode.c if (v9ses->cache == CACHE_LOOSE || v9ses 292 fs/9p/vfs_inode.c v9ses->cache == CACHE_FSCACHE) v9ses 295 fs/9p/vfs_inode.c else if (v9ses->cache == CACHE_MMAP) v9ses 303 fs/9p/vfs_inode.c if (!v9fs_proto_dotu(v9ses) && !v9fs_proto_dotl(v9ses)) { v9ses 310 fs/9p/vfs_inode.c if (v9fs_proto_dotl(v9ses)) v9ses 318 fs/9p/vfs_inode.c if (v9fs_proto_dotl(v9ses)) v9ses 320 fs/9p/vfs_inode.c else if (v9fs_proto_dotu(v9ses)) v9ses 325 fs/9p/vfs_inode.c if (v9fs_proto_dotl(v9ses)) v9ses 353 fs/9p/vfs_inode.c struct v9fs_session_info *v9ses = sb->s_fs_info; v9ses 363 fs/9p/vfs_inode.c err = v9fs_init_inode(v9ses, inode, mode, rdev); v9ses 451 fs/9p/vfs_inode.c struct v9fs_session_info *v9ses = v9fs_inode2v9ses(inode); v9ses 453 fs/9p/vfs_inode.c umode = p9mode2unixmode(v9ses, st, &rdev); v9ses 495 fs/9p/vfs_inode.c struct v9fs_session_info *v9ses = sb->s_fs_info; v9ses 515 fs/9p/vfs_inode.c umode = p9mode2unixmode(v9ses, st, &rdev); v9ses 516 fs/9p/vfs_inode.c retval = v9fs_init_inode(v9ses, inode, umode, rdev); v9ses 531 fs/9p/vfs_inode.c v9fs_inode_from_fid(struct v9fs_session_info *v9ses, struct p9_fid *fid, v9ses 591 fs/9p/vfs_inode.c struct v9fs_session_info *v9ses; v9ses 596 fs/9p/vfs_inode.c v9ses = v9fs_inode2v9ses(dir); v9ses 604 fs/9p/vfs_inode.c if (v9fs_proto_dotl(v9ses)) v9ses 642 fs/9p/vfs_inode.c v9fs_create(struct v9fs_session_info *v9ses, struct inode *dir, v9ses 690 fs/9p/vfs_inode.c inode = v9fs_get_new_inode_from_fid(v9ses, fid, dir->i_sb); v9ses 727 fs/9p/vfs_inode.c struct v9fs_session_info *v9ses = v9fs_inode2v9ses(dir); v9ses 728 fs/9p/vfs_inode.c u32 perm = unixmode2p9mode(v9ses, mode); v9ses 732 fs/9p/vfs_inode.c fid = v9fs_create(v9ses, dir, dentry, NULL, perm, P9_ORDWR); v9ses 755 fs/9p/vfs_inode.c struct v9fs_session_info *v9ses; v9ses 759 fs/9p/vfs_inode.c v9ses = v9fs_inode2v9ses(dir); v9ses 760 fs/9p/vfs_inode.c perm = unixmode2p9mode(v9ses, mode | S_IFDIR); v9ses 761 fs/9p/vfs_inode.c fid = v9fs_create(v9ses, dir, dentry, NULL, perm, P9_OREAD); v9ses 788 fs/9p/vfs_inode.c struct v9fs_session_info *v9ses; v9ses 799 fs/9p/vfs_inode.c v9ses = v9fs_inode2v9ses(dir); v9ses 816 fs/9p/vfs_inode.c else if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) v9ses 817 fs/9p/vfs_inode.c inode = v9fs_get_inode_from_fid(v9ses, fid, dir->i_sb); v9ses 819 fs/9p/vfs_inode.c inode = v9fs_get_new_inode_from_fid(v9ses, fid, dir->i_sb); v9ses 846 fs/9p/vfs_inode.c struct v9fs_session_info *v9ses; v9ses 865 fs/9p/vfs_inode.c v9ses = v9fs_inode2v9ses(dir); v9ses 866 fs/9p/vfs_inode.c perm = unixmode2p9mode(v9ses, mode); v9ses 867 fs/9p/vfs_inode.c fid = v9fs_create(v9ses, dir, dentry, NULL, perm, v9ses 869 fs/9p/vfs_inode.c v9fs_proto_dotu(v9ses))); v9ses 879 fs/9p/vfs_inode.c if ((v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) && v9ses 903 fs/9p/vfs_inode.c if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) v9ses 958 fs/9p/vfs_inode.c struct v9fs_session_info *v9ses; v9ses 971 fs/9p/vfs_inode.c v9ses = v9fs_inode2v9ses(old_inode); v9ses 988 fs/9p/vfs_inode.c down_write(&v9ses->rename_sem); v9ses 989 fs/9p/vfs_inode.c if (v9fs_proto_dotl(v9ses)) { v9ses 1008 fs/9p/vfs_inode.c wstat.muid = v9ses->uname; v9ses 1032 fs/9p/vfs_inode.c up_write(&v9ses->rename_sem); v9ses 1056 fs/9p/vfs_inode.c struct v9fs_session_info *v9ses; v9ses 1061 fs/9p/vfs_inode.c v9ses = v9fs_dentry2v9ses(dentry); v9ses 1062 fs/9p/vfs_inode.c if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) { v9ses 1092 fs/9p/vfs_inode.c struct v9fs_session_info *v9ses; v9ses 1102 fs/9p/vfs_inode.c v9ses = v9fs_dentry2v9ses(dentry); v9ses 1109 fs/9p/vfs_inode.c wstat.mode = unixmode2p9mode(v9ses, iattr->ia_mode); v9ses 1120 fs/9p/vfs_inode.c if (v9fs_proto_dotu(v9ses)) { v9ses 1164 fs/9p/vfs_inode.c struct v9fs_session_info *v9ses = sb->s_fs_info; v9ses 1173 fs/9p/vfs_inode.c inode->i_uid = v9ses->dfltuid; v9ses 1174 fs/9p/vfs_inode.c inode->i_gid = v9ses->dfltgid; v9ses 1176 fs/9p/vfs_inode.c if (v9fs_proto_dotu(v9ses)) { v9ses 1181 fs/9p/vfs_inode.c if (v9fs_proto_dotu(v9ses) && (stat->extension[0] != '\0')) { v9ses 1196 fs/9p/vfs_inode.c mode = p9mode2perm(v9ses, stat); v9ses 1238 fs/9p/vfs_inode.c struct v9fs_session_info *v9ses; v9ses 1246 fs/9p/vfs_inode.c v9ses = v9fs_dentry2v9ses(dentry); v9ses 1253 fs/9p/vfs_inode.c if (!v9fs_proto_dotu(v9ses)) v9ses 1289 fs/9p/vfs_inode.c struct v9fs_session_info *v9ses; v9ses 1291 fs/9p/vfs_inode.c v9ses = v9fs_inode2v9ses(dir); v9ses 1292 fs/9p/vfs_inode.c if (!v9fs_proto_dotu(v9ses)) { v9ses 1297 fs/9p/vfs_inode.c fid = v9fs_create(v9ses, dir, dentry, (char *) extension, perm, v9ses 1373 fs/9p/vfs_inode.c struct v9fs_session_info *v9ses = v9fs_inode2v9ses(dir); v9ses 1390 fs/9p/vfs_inode.c perm = unixmode2p9mode(v9ses, mode); v9ses 1401 fs/9p/vfs_inode.c struct v9fs_session_info *v9ses; v9ses 1404 fs/9p/vfs_inode.c v9ses = v9fs_inode2v9ses(inode); v9ses 1411 fs/9p/vfs_inode.c umode = p9mode2unixmode(v9ses, st, &rdev); v9ses 1419 fs/9p/vfs_inode.c flags = (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) ? v9ses 106 fs/9p/vfs_inode_dotl.c struct v9fs_session_info *v9ses = sb->s_fs_info; v9ses 126 fs/9p/vfs_inode_dotl.c retval = v9fs_init_inode(v9ses, inode, v9ses 146 fs/9p/vfs_inode_dotl.c v9fs_inode_from_fid_dotl(struct v9fs_session_info *v9ses, struct p9_fid *fid, v9ses 240 fs/9p/vfs_inode_dotl.c struct v9fs_session_info *v9ses; v9ses 257 fs/9p/vfs_inode_dotl.c v9ses = v9fs_inode2v9ses(dir); v9ses 305 fs/9p/vfs_inode_dotl.c inode = v9fs_get_new_inode_from_fid(v9ses, fid, dir->i_sb); v9ses 319 fs/9p/vfs_inode_dotl.c if ((v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) && v9ses 343 fs/9p/vfs_inode_dotl.c if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) v9ses 372 fs/9p/vfs_inode_dotl.c struct v9fs_session_info *v9ses; v9ses 383 fs/9p/vfs_inode_dotl.c v9ses = v9fs_inode2v9ses(dir); v9ses 421 fs/9p/vfs_inode_dotl.c if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) { v9ses 422 fs/9p/vfs_inode_dotl.c inode = v9fs_get_new_inode_from_fid(v9ses, fid, dir->i_sb); v9ses 462 fs/9p/vfs_inode_dotl.c struct v9fs_session_info *v9ses; v9ses 467 fs/9p/vfs_inode_dotl.c v9ses = v9fs_dentry2v9ses(dentry); v9ses 468 fs/9p/vfs_inode_dotl.c if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) { v9ses 678 fs/9p/vfs_inode_dotl.c struct v9fs_session_info *v9ses; v9ses 682 fs/9p/vfs_inode_dotl.c v9ses = v9fs_inode2v9ses(dir); v9ses 702 fs/9p/vfs_inode_dotl.c if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) { v9ses 714 fs/9p/vfs_inode_dotl.c inode = v9fs_get_new_inode_from_fid(v9ses, fid, dir->i_sb); v9ses 756 fs/9p/vfs_inode_dotl.c struct v9fs_session_info *v9ses; v9ses 761 fs/9p/vfs_inode_dotl.c v9ses = v9fs_inode2v9ses(dir); v9ses 778 fs/9p/vfs_inode_dotl.c if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) { v9ses 809 fs/9p/vfs_inode_dotl.c struct v9fs_session_info *v9ses; v9ses 819 fs/9p/vfs_inode_dotl.c v9ses = v9fs_inode2v9ses(dir); v9ses 854 fs/9p/vfs_inode_dotl.c if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) { v9ses 855 fs/9p/vfs_inode_dotl.c inode = v9fs_get_new_inode_from_fid(v9ses, fid, dir->i_sb); v9ses 921 fs/9p/vfs_inode_dotl.c struct v9fs_session_info *v9ses; v9ses 924 fs/9p/vfs_inode_dotl.c v9ses = v9fs_inode2v9ses(inode); v9ses 938 fs/9p/vfs_inode_dotl.c flags = (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) ? v9ses 60 fs/9p/vfs_super.c v9fs_fill_super(struct super_block *sb, struct v9fs_session_info *v9ses, v9ses 66 fs/9p/vfs_super.c sb->s_blocksize_bits = fls(v9ses->maxdata - 1); v9ses 69 fs/9p/vfs_super.c if (v9fs_proto_dotl(v9ses)) { v9ses 83 fs/9p/vfs_super.c if (v9ses->cache) v9ses 87 fs/9p/vfs_super.c if (!v9ses->cache) v9ses 91 fs/9p/vfs_super.c if ((v9ses->flags & V9FS_ACL_MASK) == V9FS_POSIX_ACL) v9ses 113 fs/9p/vfs_super.c struct v9fs_session_info *v9ses = NULL; v9ses 120 fs/9p/vfs_super.c v9ses = kzalloc(sizeof(struct v9fs_session_info), GFP_KERNEL); v9ses 121 fs/9p/vfs_super.c if (!v9ses) v9ses 124 fs/9p/vfs_super.c fid = v9fs_session_init(v9ses, dev_name, data); v9ses 130 fs/9p/vfs_super.c sb = sget(fs_type, NULL, v9fs_set_super, flags, v9ses); v9ses 135 fs/9p/vfs_super.c retval = v9fs_fill_super(sb, v9ses, flags); v9ses 139 fs/9p/vfs_super.c if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) v9ses 156 fs/9p/vfs_super.c if (v9fs_proto_dotl(v9ses)) { v9ses 190 fs/9p/vfs_super.c v9fs_session_close(v9ses); v9ses 192 fs/9p/vfs_super.c kfree(v9ses); v9ses 215 fs/9p/vfs_super.c struct v9fs_session_info *v9ses = s->s_fs_info; v9ses 221 fs/9p/vfs_super.c v9fs_session_cancel(v9ses); v9ses 222 fs/9p/vfs_super.c v9fs_session_close(v9ses); v9ses 223 fs/9p/vfs_super.c kfree(v9ses); v9ses 231 fs/9p/vfs_super.c struct v9fs_session_info *v9ses; v9ses 233 fs/9p/vfs_super.c v9ses = sb->s_fs_info; v9ses 234 fs/9p/vfs_super.c v9fs_session_begin_cancel(v9ses); v9ses 239 fs/9p/vfs_super.c struct v9fs_session_info *v9ses; v9ses 250 fs/9p/vfs_super.c v9ses = v9fs_dentry2v9ses(dentry); v9ses 251 fs/9p/vfs_super.c if (v9fs_proto_dotl(v9ses)) { v9ses 275 fs/9p/vfs_super.c struct v9fs_session_info *v9ses; v9ses 276 fs/9p/vfs_super.c v9ses = v9fs_inode2v9ses(inode); v9ses 277 fs/9p/vfs_super.c if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE)