• Home
  • Raw
  • Download

Lines Matching refs:v9ses

47 static u32 unixmode2p9mode(struct v9fs_session_info *v9ses, umode_t mode)  in unixmode2p9mode()  argument
54 if (v9fs_proto_dotu(v9ses)) { in unixmode2p9mode()
55 if (v9ses->nodev == 0) { in unixmode2p9mode()
82 static int p9mode2perm(struct v9fs_session_info *v9ses, in p9mode2perm() argument
89 if (v9fs_proto_dotu(v9ses)) { in p9mode2perm()
109 static umode_t p9mode2unixmode(struct v9fs_session_info *v9ses, in p9mode2unixmode() argument
116 res = p9mode2perm(v9ses, stat); in p9mode2unixmode()
120 else if ((mode & P9_DMSYMLINK) && (v9fs_proto_dotu(v9ses))) in p9mode2unixmode()
122 else if ((mode & P9_DMSOCKET) && (v9fs_proto_dotu(v9ses)) in p9mode2unixmode()
123 && (v9ses->nodev == 0)) in p9mode2unixmode()
125 else if ((mode & P9_DMNAMEDPIPE) && (v9fs_proto_dotu(v9ses)) in p9mode2unixmode()
126 && (v9ses->nodev == 0)) in p9mode2unixmode()
128 else if ((mode & P9_DMDEVICE) && (v9fs_proto_dotu(v9ses)) in p9mode2unixmode()
129 && (v9ses->nodev == 0)) { in p9mode2unixmode()
259 int v9fs_init_inode(struct v9fs_session_info *v9ses, in v9fs_init_inode() argument
276 if (v9fs_proto_dotl(v9ses)) { in v9fs_init_inode()
278 } else if (v9fs_proto_dotu(v9ses)) { in v9fs_init_inode()
289 if (v9fs_proto_dotl(v9ses)) { in v9fs_init_inode()
291 if (v9ses->cache == CACHE_LOOSE || in v9fs_init_inode()
292 v9ses->cache == CACHE_FSCACHE) in v9fs_init_inode()
295 else if (v9ses->cache == CACHE_MMAP) in v9fs_init_inode()
301 if (v9ses->cache == CACHE_LOOSE || in v9fs_init_inode()
302 v9ses->cache == CACHE_FSCACHE) in v9fs_init_inode()
305 else if (v9ses->cache == CACHE_MMAP) in v9fs_init_inode()
313 if (!v9fs_proto_dotu(v9ses) && !v9fs_proto_dotl(v9ses)) { in v9fs_init_inode()
320 if (v9fs_proto_dotl(v9ses)) in v9fs_init_inode()
328 if (v9fs_proto_dotl(v9ses)) in v9fs_init_inode()
330 else if (v9fs_proto_dotu(v9ses)) in v9fs_init_inode()
335 if (v9fs_proto_dotl(v9ses)) in v9fs_init_inode()
363 struct v9fs_session_info *v9ses = sb->s_fs_info; in v9fs_get_inode() local
373 err = v9fs_init_inode(v9ses, inode, mode, rdev); in v9fs_get_inode()
411 struct v9fs_session_info *v9ses = v9fs_inode2v9ses(inode); in v9fs_test_inode() local
413 umode = p9mode2unixmode(v9ses, st, &rdev); in v9fs_test_inode()
455 struct v9fs_session_info *v9ses = sb->s_fs_info; in v9fs_qid_iget() local
475 umode = p9mode2unixmode(v9ses, st, &rdev); in v9fs_qid_iget()
476 retval = v9fs_init_inode(v9ses, inode, umode, rdev); in v9fs_qid_iget()
492 v9fs_inode_from_fid(struct v9fs_session_info *v9ses, struct p9_fid *fid, in v9fs_inode_from_fid() argument
554 struct v9fs_session_info *v9ses; in v9fs_remove() local
559 v9ses = v9fs_inode2v9ses(dir); in v9fs_remove()
567 if (v9fs_proto_dotl(v9ses)) in v9fs_remove()
610 v9fs_create(struct v9fs_session_info *v9ses, struct inode *dir, in v9fs_create() argument
655 inode = v9fs_get_new_inode_from_fid(v9ses, fid, dir->i_sb); in v9fs_create()
691 struct v9fs_session_info *v9ses = v9fs_inode2v9ses(dir); in v9fs_vfs_create() local
692 u32 perm = unixmode2p9mode(v9ses, mode); in v9fs_vfs_create()
696 fid = v9fs_create(v9ses, dir, dentry, NULL, perm, P9_ORDWR); in v9fs_vfs_create()
721 struct v9fs_session_info *v9ses; in v9fs_vfs_mkdir() local
725 v9ses = v9fs_inode2v9ses(dir); in v9fs_vfs_mkdir()
726 perm = unixmode2p9mode(v9ses, mode | S_IFDIR); in v9fs_vfs_mkdir()
727 fid = v9fs_create(v9ses, dir, dentry, NULL, perm, P9_OREAD); in v9fs_vfs_mkdir()
754 struct v9fs_session_info *v9ses; in v9fs_vfs_lookup() local
765 v9ses = v9fs_inode2v9ses(dir); in v9fs_vfs_lookup()
783 else if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) in v9fs_vfs_lookup()
784 inode = v9fs_get_inode_from_fid(v9ses, fid, dir->i_sb); in v9fs_vfs_lookup()
786 inode = v9fs_get_new_inode_from_fid(v9ses, fid, dir->i_sb); in v9fs_vfs_lookup()
813 struct v9fs_session_info *v9ses; in v9fs_vfs_atomic_open() local
833 v9ses = v9fs_inode2v9ses(dir); in v9fs_vfs_atomic_open()
834 perm = unixmode2p9mode(v9ses, mode); in v9fs_vfs_atomic_open()
835 fid = v9fs_create(v9ses, dir, dentry, NULL, perm, in v9fs_vfs_atomic_open()
837 v9fs_proto_dotu(v9ses))); in v9fs_vfs_atomic_open()
847 if ((v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) && in v9fs_vfs_atomic_open()
871 if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) in v9fs_vfs_atomic_open()
929 struct v9fs_session_info *v9ses; in v9fs_vfs_rename() local
942 v9ses = v9fs_inode2v9ses(old_inode); in v9fs_vfs_rename()
967 down_write(&v9ses->rename_sem); in v9fs_vfs_rename()
968 if (v9fs_proto_dotl(v9ses)) { in v9fs_vfs_rename()
987 wstat.muid = v9ses->uname; in v9fs_vfs_rename()
1011 up_write(&v9ses->rename_sem); in v9fs_vfs_rename()
1035 struct v9fs_session_info *v9ses; in v9fs_vfs_getattr() local
1040 v9ses = v9fs_dentry2v9ses(dentry); in v9fs_vfs_getattr()
1041 if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) { in v9fs_vfs_getattr()
1076 struct v9fs_session_info *v9ses; in v9fs_vfs_setattr() local
1086 v9ses = v9fs_dentry2v9ses(dentry); in v9fs_vfs_setattr()
1100 wstat.mode = unixmode2p9mode(v9ses, iattr->ia_mode); in v9fs_vfs_setattr()
1111 if (v9fs_proto_dotu(v9ses)) { in v9fs_vfs_setattr()
1158 struct v9fs_session_info *v9ses = sb->s_fs_info; in v9fs_stat2inode() local
1167 inode->i_uid = v9ses->dfltuid; in v9fs_stat2inode()
1168 inode->i_gid = v9ses->dfltgid; in v9fs_stat2inode()
1170 if (v9fs_proto_dotu(v9ses)) { in v9fs_stat2inode()
1175 if (v9fs_proto_dotu(v9ses)) { in v9fs_stat2inode()
1190 mode = p9mode2perm(v9ses, stat); in v9fs_stat2inode()
1232 struct v9fs_session_info *v9ses; in v9fs_vfs_get_link() local
1240 v9ses = v9fs_dentry2v9ses(dentry); in v9fs_vfs_get_link()
1241 if (!v9fs_proto_dotu(v9ses)) in v9fs_vfs_get_link()
1284 struct v9fs_session_info *v9ses; in v9fs_vfs_mkspecial() local
1286 v9ses = v9fs_inode2v9ses(dir); in v9fs_vfs_mkspecial()
1287 if (!v9fs_proto_dotu(v9ses)) { in v9fs_vfs_mkspecial()
1292 fid = v9fs_create(v9ses, dir, dentry, (char *) extension, perm, in v9fs_vfs_mkspecial()
1372 struct v9fs_session_info *v9ses = v9fs_inode2v9ses(dir); in v9fs_vfs_mknod() local
1389 perm = unixmode2p9mode(v9ses, mode); in v9fs_vfs_mknod()
1400 struct v9fs_session_info *v9ses; in v9fs_refresh_inode() local
1403 v9ses = v9fs_inode2v9ses(inode); in v9fs_refresh_inode()
1410 umode = p9mode2unixmode(v9ses, st, &rdev); in v9fs_refresh_inode()
1418 flags = (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) ? in v9fs_refresh_inode()