Lines Matching defs:v9ses
58 * @v9ses: v9fs session information
63 static int unixmode2p9mode(struct v9fs_session_info *v9ses, int mode)
69 if (v9fs_proto_dotu(v9ses)) {
72 if (v9ses->nodev == 0) {
98 * @v9ses: v9fs session information
103 static int p9mode2unixmode(struct v9fs_session_info *v9ses, int mode)
111 else if ((mode & P9_DMSYMLINK) && (v9fs_proto_dotu(v9ses)))
113 else if ((mode & P9_DMSOCKET) && (v9fs_proto_dotu(v9ses))
114 && (v9ses->nodev == 0))
116 else if ((mode & P9_DMNAMEDPIPE) && (v9fs_proto_dotu(v9ses))
117 && (v9ses->nodev == 0))
119 else if ((mode & P9_DMDEVICE) && (v9fs_proto_dotu(v9ses))
120 && (v9ses->nodev == 0))
125 if (v9fs_proto_dotu(v9ses)) {
286 struct v9fs_session_info *v9ses = sb->s_fs_info;
307 if (v9fs_proto_dotl(v9ses)) {
310 } else if (v9fs_proto_dotu(v9ses)) {
322 if (v9fs_proto_dotl(v9ses)) {
333 if (!v9fs_proto_dotu(v9ses) && !v9fs_proto_dotl(v9ses)) {
340 if (v9fs_proto_dotl(v9ses))
348 if (v9fs_proto_dotl(v9ses))
350 else if (v9fs_proto_dotu(v9ses))
355 if (v9fs_proto_dotl(v9ses))
377 v9fs_clone_walk(struct v9fs_session_info *v9ses, u32 fid, struct dentry *dentry)
384 nfid = v9fs_get_idpool(&v9ses->fidpool);
390 err = v9fs_t_walk(v9ses, fid, nfid, (char *) dentry->d_name.name,
398 v9fs_put_idpool(nfid, &v9ses->fidpool);
404 ret = v9fs_fid_create(v9ses, nfid);
419 v9fs_t_clunk(v9ses, nfid);
445 v9fs_inode(struct v9fs_session_info *v9ses, struct p9_fid *fid,
456 umode = p9mode2unixmode(v9ses, st->mode);
480 v9fs_inode_dotl(struct v9fs_session_info *v9ses, struct p9_fid *fid,
513 * @v9ses: session information
519 v9fs_inode_from_fid(struct v9fs_session_info *v9ses, struct p9_fid *fid,
522 if (v9fs_proto_dotl(v9ses))
523 return v9fs_inode_dotl(v9ses, fid, sb);
525 return v9fs_inode(v9ses, fid, sb);
565 * @v9ses: session information
574 v9fs_create(struct v9fs_session_info *v9ses, struct inode *dir,
619 inode = v9fs_inode_from_fid(v9ses, fid, dir->i_sb);
626 if (v9ses->cache)
665 struct v9fs_session_info *v9ses;
672 v9ses = v9fs_inode2v9ses(dir);
709 if (!v9ses->cache && !(nd && nd->flags & LOOKUP_OPEN)) {
727 inode = v9fs_inode_from_fid(v9ses, fid, dir->i_sb);
733 if (v9ses->cache)
779 struct v9fs_session_info *v9ses;
785 v9ses = v9fs_inode2v9ses(dir);
786 perm = unixmode2p9mode(v9ses, mode);
792 fid = v9fs_create(v9ses, dir, dentry, NULL, perm,
794 v9fs_proto_dotu(v9ses)));
834 struct v9fs_session_info *v9ses;
839 v9ses = v9fs_inode2v9ses(dir);
840 perm = unixmode2p9mode(v9ses, mode | S_IFDIR);
841 fid = v9fs_create(v9ses, dir, dentry, NULL, perm, P9_OREAD);
866 struct v9fs_session_info *v9ses;
876 v9ses = v9fs_inode2v9ses(dir);
900 if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) {
910 inode = v9fs_inode_from_fid(v9ses, fid, dir->i_sb);
942 struct v9fs_session_info *v9ses;
955 v9ses = v9fs_inode2v9ses(dir);
973 inode = v9fs_inode_from_fid(v9ses, fid, dir->i_sb);
985 if (v9ses->cache)
1037 struct v9fs_session_info *v9ses;
1047 v9ses = v9fs_inode2v9ses(old_inode);
1064 down_write(&v9ses->rename_sem);
1065 if (v9fs_proto_dotl(v9ses)) {
1082 wstat.muid = v9ses->uname;
1090 up_write(&v9ses->rename_sem);
1113 struct v9fs_session_info *v9ses;
1119 v9ses = v9fs_inode2v9ses(dentry->d_inode);
1120 if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE)
1144 struct v9fs_session_info *v9ses;
1150 v9ses = v9fs_inode2v9ses(dentry->d_inode);
1151 if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE)
1185 struct v9fs_session_info *v9ses;
1191 v9ses = v9fs_inode2v9ses(dentry->d_inode);
1198 wstat.mode = unixmode2p9mode(v9ses, iattr->ia_mode);
1209 if (v9fs_proto_dotu(v9ses)) {
1243 struct v9fs_session_info *v9ses;
1264 v9ses = v9fs_inode2v9ses(dentry->d_inode);
1300 struct v9fs_session_info *v9ses = sb->s_fs_info;
1308 inode->i_uid = v9ses->dfltuid;
1309 inode->i_gid = v9ses->dfltgid;
1311 if (v9fs_proto_dotu(v9ses)) {
1316 if (v9fs_proto_dotu(v9ses) && (stat->extension[0] != '\0')) {
1331 inode->i_mode = p9mode2unixmode(v9ses, stat->mode);
1465 struct v9fs_session_info *v9ses;
1471 v9ses = v9fs_inode2v9ses(dentry->d_inode);
1476 if (!v9fs_proto_dotu(v9ses) && !v9fs_proto_dotl(v9ses))
1563 struct v9fs_session_info *v9ses;
1566 v9ses = v9fs_inode2v9ses(dir);
1567 if (!v9fs_proto_dotu(v9ses)) {
1572 perm = unixmode2p9mode(v9ses, mode);
1573 fid = v9fs_create(v9ses, dir, dentry, (char *) extension, perm,
1596 struct v9fs_session_info *v9ses;
1608 v9ses = v9fs_inode2v9ses(dir);
1632 if (v9ses->cache) {
1644 inode = v9fs_inode_from_fid(v9ses, fid, dir->i_sb);
1748 struct v9fs_session_info *v9ses;
1755 v9ses = v9fs_inode2v9ses(dir);
1774 if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) {
1862 struct v9fs_session_info *v9ses;
1876 v9ses = v9fs_inode2v9ses(dir);
1899 if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) {
1909 inode = v9fs_inode_from_fid(v9ses, fid, dir->i_sb);