• Home
  • Raw
  • Download

Lines Matching refs:v9ses

49 static u32 unixmode2p9mode(struct v9fs_session_info *v9ses, umode_t mode)  in unixmode2p9mode()  argument
55 if (v9fs_proto_dotu(v9ses)) { in unixmode2p9mode()
56 if (v9ses->nodev == 0) { in unixmode2p9mode()
83 static int p9mode2perm(struct v9fs_session_info *v9ses, in p9mode2perm() argument
90 if (v9fs_proto_dotu(v9ses)) { in p9mode2perm()
110 static umode_t p9mode2unixmode(struct v9fs_session_info *v9ses, in p9mode2unixmode() argument
117 res = p9mode2perm(v9ses, stat); in p9mode2unixmode()
121 else if ((mode & P9_DMSYMLINK) && (v9fs_proto_dotu(v9ses))) in p9mode2unixmode()
123 else if ((mode & P9_DMSOCKET) && (v9fs_proto_dotu(v9ses)) in p9mode2unixmode()
124 && (v9ses->nodev == 0)) in p9mode2unixmode()
126 else if ((mode & P9_DMNAMEDPIPE) && (v9fs_proto_dotu(v9ses)) in p9mode2unixmode()
127 && (v9ses->nodev == 0)) in p9mode2unixmode()
129 else if ((mode & P9_DMDEVICE) && (v9fs_proto_dotu(v9ses)) in p9mode2unixmode()
130 && (v9ses->nodev == 0)) { in p9mode2unixmode()
249 int v9fs_init_inode(struct v9fs_session_info *v9ses, in v9fs_init_inode() argument
265 if (v9fs_proto_dotl(v9ses)) { in v9fs_init_inode()
267 } else if (v9fs_proto_dotu(v9ses)) { in v9fs_init_inode()
278 if (v9fs_proto_dotl(v9ses)) { in v9fs_init_inode()
280 if (v9ses->cache == CACHE_LOOSE || in v9fs_init_inode()
281 v9ses->cache == CACHE_FSCACHE) in v9fs_init_inode()
284 else if (v9ses->cache == CACHE_MMAP) in v9fs_init_inode()
290 if (v9ses->cache == CACHE_LOOSE || in v9fs_init_inode()
291 v9ses->cache == CACHE_FSCACHE) in v9fs_init_inode()
294 else if (v9ses->cache == CACHE_MMAP) in v9fs_init_inode()
302 if (!v9fs_proto_dotu(v9ses) && !v9fs_proto_dotl(v9ses)) { in v9fs_init_inode()
309 if (v9fs_proto_dotl(v9ses)) in v9fs_init_inode()
317 if (v9fs_proto_dotl(v9ses)) in v9fs_init_inode()
319 else if (v9fs_proto_dotu(v9ses)) in v9fs_init_inode()
324 if (v9fs_proto_dotl(v9ses)) in v9fs_init_inode()
352 struct v9fs_session_info *v9ses = sb->s_fs_info; in v9fs_get_inode() local
362 err = v9fs_init_inode(v9ses, inode, mode, rdev); in v9fs_get_inode()
397 struct v9fs_session_info *v9ses = v9fs_inode2v9ses(inode); in v9fs_test_inode() local
399 umode = p9mode2unixmode(v9ses, st, &rdev); in v9fs_test_inode()
441 struct v9fs_session_info *v9ses = sb->s_fs_info; in v9fs_qid_iget() local
461 umode = p9mode2unixmode(v9ses, st, &rdev); in v9fs_qid_iget()
462 retval = v9fs_init_inode(v9ses, inode, umode, rdev); in v9fs_qid_iget()
477 v9fs_inode_from_fid(struct v9fs_session_info *v9ses, struct p9_fid *fid, in v9fs_inode_from_fid() argument
537 struct v9fs_session_info *v9ses; in v9fs_remove() local
542 v9ses = v9fs_inode2v9ses(dir); in v9fs_remove()
550 if (v9fs_proto_dotl(v9ses)) in v9fs_remove()
588 v9fs_create(struct v9fs_session_info *v9ses, struct inode *dir, in v9fs_create() argument
636 inode = v9fs_get_new_inode_from_fid(v9ses, fid, dir->i_sb); in v9fs_create()
673 struct v9fs_session_info *v9ses = v9fs_inode2v9ses(dir); in v9fs_vfs_create() local
674 u32 perm = unixmode2p9mode(v9ses, mode); in v9fs_vfs_create()
678 fid = v9fs_create(v9ses, dir, dentry, NULL, perm, P9_ORDWR); in v9fs_vfs_create()
701 struct v9fs_session_info *v9ses; in v9fs_vfs_mkdir() local
705 v9ses = v9fs_inode2v9ses(dir); in v9fs_vfs_mkdir()
706 perm = unixmode2p9mode(v9ses, mode | S_IFDIR); in v9fs_vfs_mkdir()
707 fid = v9fs_create(v9ses, dir, dentry, NULL, perm, P9_OREAD); in v9fs_vfs_mkdir()
734 struct v9fs_session_info *v9ses; in v9fs_vfs_lookup() local
745 v9ses = v9fs_inode2v9ses(dir); in v9fs_vfs_lookup()
762 else if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) in v9fs_vfs_lookup()
763 inode = v9fs_get_inode_from_fid(v9ses, fid, dir->i_sb); in v9fs_vfs_lookup()
765 inode = v9fs_get_new_inode_from_fid(v9ses, fid, dir->i_sb); in v9fs_vfs_lookup()
792 struct v9fs_session_info *v9ses; in v9fs_vfs_atomic_open() local
811 v9ses = v9fs_inode2v9ses(dir); in v9fs_vfs_atomic_open()
812 perm = unixmode2p9mode(v9ses, mode); in v9fs_vfs_atomic_open()
813 fid = v9fs_create(v9ses, dir, dentry, NULL, perm, in v9fs_vfs_atomic_open()
815 v9fs_proto_dotu(v9ses))); in v9fs_vfs_atomic_open()
825 if ((v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) && in v9fs_vfs_atomic_open()
849 if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) in v9fs_vfs_atomic_open()
904 struct v9fs_session_info *v9ses; in v9fs_vfs_rename() local
917 v9ses = v9fs_inode2v9ses(old_inode); in v9fs_vfs_rename()
934 down_write(&v9ses->rename_sem); in v9fs_vfs_rename()
935 if (v9fs_proto_dotl(v9ses)) { in v9fs_vfs_rename()
954 wstat.muid = v9ses->uname; in v9fs_vfs_rename()
978 up_write(&v9ses->rename_sem); in v9fs_vfs_rename()
1002 struct v9fs_session_info *v9ses; in v9fs_vfs_getattr() local
1007 v9ses = v9fs_dentry2v9ses(dentry); in v9fs_vfs_getattr()
1008 if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) { in v9fs_vfs_getattr()
1038 struct v9fs_session_info *v9ses; in v9fs_vfs_setattr() local
1048 v9ses = v9fs_dentry2v9ses(dentry); in v9fs_vfs_setattr()
1060 wstat.mode = unixmode2p9mode(v9ses, iattr->ia_mode); in v9fs_vfs_setattr()
1071 if (v9fs_proto_dotu(v9ses)) { in v9fs_vfs_setattr()
1115 struct v9fs_session_info *v9ses = sb->s_fs_info; in v9fs_stat2inode() local
1124 inode->i_uid = v9ses->dfltuid; in v9fs_stat2inode()
1125 inode->i_gid = v9ses->dfltgid; in v9fs_stat2inode()
1127 if (v9fs_proto_dotu(v9ses)) { in v9fs_stat2inode()
1132 if (v9fs_proto_dotu(v9ses) && (stat->extension[0] != '\0')) { in v9fs_stat2inode()
1147 mode = p9mode2perm(v9ses, stat); in v9fs_stat2inode()
1189 struct v9fs_session_info *v9ses; in v9fs_vfs_get_link() local
1197 v9ses = v9fs_dentry2v9ses(dentry); in v9fs_vfs_get_link()
1204 if (!v9fs_proto_dotu(v9ses)) in v9fs_vfs_get_link()
1240 struct v9fs_session_info *v9ses; in v9fs_vfs_mkspecial() local
1242 v9ses = v9fs_inode2v9ses(dir); in v9fs_vfs_mkspecial()
1243 if (!v9fs_proto_dotu(v9ses)) { in v9fs_vfs_mkspecial()
1248 fid = v9fs_create(v9ses, dir, dentry, (char *) extension, perm, in v9fs_vfs_mkspecial()
1324 struct v9fs_session_info *v9ses = v9fs_inode2v9ses(dir); in v9fs_vfs_mknod() local
1341 perm = unixmode2p9mode(v9ses, mode); in v9fs_vfs_mknod()
1352 struct v9fs_session_info *v9ses; in v9fs_refresh_inode() local
1355 v9ses = v9fs_inode2v9ses(inode); in v9fs_refresh_inode()
1362 umode = p9mode2unixmode(v9ses, st, &rdev); in v9fs_refresh_inode()
1370 flags = (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) ? in v9fs_refresh_inode()