• Home
  • Raw
  • Download

Lines Matching refs:v9ses

64 static u32 unixmode2p9mode(struct v9fs_session_info *v9ses, umode_t mode)  in unixmode2p9mode()  argument
70 if (v9fs_proto_dotu(v9ses)) { in unixmode2p9mode()
71 if (v9ses->nodev == 0) { in unixmode2p9mode()
98 static int p9mode2perm(struct v9fs_session_info *v9ses, in p9mode2perm() argument
105 if (v9fs_proto_dotu(v9ses)) { in p9mode2perm()
125 static umode_t p9mode2unixmode(struct v9fs_session_info *v9ses, in p9mode2unixmode() argument
132 res = p9mode2perm(v9ses, stat); in p9mode2unixmode()
136 else if ((mode & P9_DMSYMLINK) && (v9fs_proto_dotu(v9ses))) in p9mode2unixmode()
138 else if ((mode & P9_DMSOCKET) && (v9fs_proto_dotu(v9ses)) in p9mode2unixmode()
139 && (v9ses->nodev == 0)) in p9mode2unixmode()
141 else if ((mode & P9_DMNAMEDPIPE) && (v9fs_proto_dotu(v9ses)) in p9mode2unixmode()
142 && (v9ses->nodev == 0)) in p9mode2unixmode()
144 else if ((mode & P9_DMDEVICE) && (v9fs_proto_dotu(v9ses)) in p9mode2unixmode()
145 && (v9ses->nodev == 0)) { in p9mode2unixmode()
271 int v9fs_init_inode(struct v9fs_session_info *v9ses, in v9fs_init_inode() argument
287 if (v9fs_proto_dotl(v9ses)) { in v9fs_init_inode()
289 } else if (v9fs_proto_dotu(v9ses)) { in v9fs_init_inode()
300 if (v9fs_proto_dotl(v9ses)) { in v9fs_init_inode()
302 if (v9ses->cache == CACHE_LOOSE || in v9fs_init_inode()
303 v9ses->cache == CACHE_FSCACHE) in v9fs_init_inode()
306 else if (v9ses->cache == CACHE_MMAP) in v9fs_init_inode()
312 if (v9ses->cache == CACHE_LOOSE || in v9fs_init_inode()
313 v9ses->cache == CACHE_FSCACHE) in v9fs_init_inode()
316 else if (v9ses->cache == CACHE_MMAP) in v9fs_init_inode()
324 if (!v9fs_proto_dotu(v9ses) && !v9fs_proto_dotl(v9ses)) { in v9fs_init_inode()
331 if (v9fs_proto_dotl(v9ses)) in v9fs_init_inode()
339 if (v9fs_proto_dotl(v9ses)) in v9fs_init_inode()
341 else if (v9fs_proto_dotu(v9ses)) in v9fs_init_inode()
346 if (v9fs_proto_dotl(v9ses)) in v9fs_init_inode()
374 struct v9fs_session_info *v9ses = sb->s_fs_info; in v9fs_get_inode() local
384 err = v9fs_init_inode(v9ses, inode, mode, rdev); in v9fs_get_inode()
472 struct v9fs_session_info *v9ses = v9fs_inode2v9ses(inode); in v9fs_test_inode() local
474 umode = p9mode2unixmode(v9ses, st, &rdev); in v9fs_test_inode()
516 struct v9fs_session_info *v9ses = sb->s_fs_info; in v9fs_qid_iget() local
536 umode = p9mode2unixmode(v9ses, st, &rdev); in v9fs_qid_iget()
537 retval = v9fs_init_inode(v9ses, inode, umode, rdev); in v9fs_qid_iget()
552 v9fs_inode_from_fid(struct v9fs_session_info *v9ses, struct p9_fid *fid, in v9fs_inode_from_fid() argument
594 struct v9fs_session_info *v9ses; in v9fs_remove() local
599 v9ses = v9fs_inode2v9ses(dir); in v9fs_remove()
607 if (v9fs_proto_dotl(v9ses)) in v9fs_remove()
645 v9fs_create(struct v9fs_session_info *v9ses, struct inode *dir, in v9fs_create() argument
693 inode = v9fs_get_new_inode_from_fid(v9ses, fid, dir->i_sb); in v9fs_create()
730 struct v9fs_session_info *v9ses = v9fs_inode2v9ses(dir); in v9fs_vfs_create() local
731 u32 perm = unixmode2p9mode(v9ses, mode); in v9fs_vfs_create()
735 fid = v9fs_create(v9ses, dir, dentry, NULL, perm, P9_ORDWR); in v9fs_vfs_create()
758 struct v9fs_session_info *v9ses; in v9fs_vfs_mkdir() local
762 v9ses = v9fs_inode2v9ses(dir); in v9fs_vfs_mkdir()
763 perm = unixmode2p9mode(v9ses, mode | S_IFDIR); in v9fs_vfs_mkdir()
764 fid = v9fs_create(v9ses, dir, dentry, NULL, perm, P9_OREAD); in v9fs_vfs_mkdir()
791 struct v9fs_session_info *v9ses; in v9fs_vfs_lookup() local
802 v9ses = v9fs_inode2v9ses(dir); in v9fs_vfs_lookup()
822 if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) in v9fs_vfs_lookup()
823 inode = v9fs_get_inode_from_fid(v9ses, fid, dir->i_sb); in v9fs_vfs_lookup()
825 inode = v9fs_get_new_inode_from_fid(v9ses, fid, dir->i_sb); in v9fs_vfs_lookup()
855 struct v9fs_session_info *v9ses; in v9fs_vfs_atomic_open() local
874 v9ses = v9fs_inode2v9ses(dir); in v9fs_vfs_atomic_open()
875 perm = unixmode2p9mode(v9ses, mode); in v9fs_vfs_atomic_open()
876 fid = v9fs_create(v9ses, dir, dentry, NULL, perm, in v9fs_vfs_atomic_open()
878 v9fs_proto_dotu(v9ses))); in v9fs_vfs_atomic_open()
888 if ((v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) && in v9fs_vfs_atomic_open()
912 if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) in v9fs_vfs_atomic_open()
966 struct v9fs_session_info *v9ses; in v9fs_vfs_rename() local
976 v9ses = v9fs_inode2v9ses(old_inode); in v9fs_vfs_rename()
993 down_write(&v9ses->rename_sem); in v9fs_vfs_rename()
994 if (v9fs_proto_dotl(v9ses)) { in v9fs_vfs_rename()
1013 wstat.muid = v9ses->uname; in v9fs_vfs_rename()
1037 up_write(&v9ses->rename_sem); in v9fs_vfs_rename()
1059 struct v9fs_session_info *v9ses; in v9fs_vfs_getattr() local
1064 v9ses = v9fs_dentry2v9ses(dentry); in v9fs_vfs_getattr()
1065 if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) { in v9fs_vfs_getattr()
1095 struct v9fs_session_info *v9ses; in v9fs_vfs_setattr() local
1105 v9ses = v9fs_dentry2v9ses(dentry); in v9fs_vfs_setattr()
1112 wstat.mode = unixmode2p9mode(v9ses, iattr->ia_mode); in v9fs_vfs_setattr()
1123 if (v9fs_proto_dotu(v9ses)) { in v9fs_vfs_setattr()
1167 struct v9fs_session_info *v9ses = sb->s_fs_info; in v9fs_stat2inode() local
1176 inode->i_uid = v9ses->dfltuid; in v9fs_stat2inode()
1177 inode->i_gid = v9ses->dfltgid; in v9fs_stat2inode()
1179 if (v9fs_proto_dotu(v9ses)) { in v9fs_stat2inode()
1184 if (v9fs_proto_dotu(v9ses) && (stat->extension[0] != '\0')) { in v9fs_stat2inode()
1199 mode = p9mode2perm(v9ses, stat); in v9fs_stat2inode()
1238 struct v9fs_session_info *v9ses = v9fs_dentry2v9ses(dentry); in v9fs_vfs_follow_link() local
1248 if (!v9fs_proto_dotu(v9ses)) in v9fs_vfs_follow_link()
1283 struct v9fs_session_info *v9ses; in v9fs_vfs_mkspecial() local
1285 v9ses = v9fs_inode2v9ses(dir); in v9fs_vfs_mkspecial()
1286 if (!v9fs_proto_dotu(v9ses)) { in v9fs_vfs_mkspecial()
1291 fid = v9fs_create(v9ses, dir, dentry, (char *) extension, perm, in v9fs_vfs_mkspecial()
1367 struct v9fs_session_info *v9ses = v9fs_inode2v9ses(dir); in v9fs_vfs_mknod() local
1384 perm = unixmode2p9mode(v9ses, mode); in v9fs_vfs_mknod()
1395 struct v9fs_session_info *v9ses; in v9fs_refresh_inode() local
1398 v9ses = v9fs_inode2v9ses(inode); in v9fs_refresh_inode()
1405 umode = p9mode2unixmode(v9ses, st, &rdev); in v9fs_refresh_inode()
1413 flags = (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) ? in v9fs_refresh_inode()