Lines Matching refs:nodep
79 struct namenode *nodep = VTONM(*vpp); in nm_open() local
92 infilevp = outfilevp = nodep->nm_filevp; in nm_open()
107 namefind(outfilevp, nodep->nm_mountpt)) != NULL) { in nm_open()
120 mutex_enter(&nodep->nm_lock); in nm_open()
129 bcopy(&nodep->nm_vattr, &newnamep->nm_vattr, sizeof (vattr_t)); in nm_open()
136 newnamep->nm_filep = nodep->nm_filep; in nm_open()
137 newnamep->nm_mountpt = nodep->nm_mountpt; in nm_open()
138 mutex_exit(&nodep->nm_lock); in nm_open()
166 struct namenode *nodep = VTONM(vp); in nm_close() local
171 error = VOP_CLOSE(nodep->nm_filevp, flag, count, offset, crp, ct); in nm_close()
173 (void) VOP_FSYNC(nodep->nm_filevp, FSYNC, crp, ct); in nm_close()
181 if ((nodep->nm_flag & NMNMNT) != 0) { in nm_close()
183 nameremove(nodep); in nm_close()
186 VN_RELE(nodep->nm_filevp); in nm_close()
221 struct namenode *nodep = VTONM(vp); in nm_getattr() local
225 mutex_enter(&nodep->nm_lock); in nm_getattr()
226 bcopy(&nodep->nm_vattr, vap, sizeof (vattr_t)); in nm_getattr()
227 mutex_exit(&nodep->nm_lock); in nm_getattr()
230 if (error = VOP_GETATTR(nodep->nm_filevp, &va, flags, crp, ct)) in nm_getattr()
245 struct namenode *nodep = vnp; in nm_access_unlocked() local
248 if (crgetuid(crp) != nodep->nm_vattr.va_uid) { in nm_access_unlocked()
250 if (!groupmember(nodep->nm_vattr.va_gid, crp)) in nm_access_unlocked()
254 return (secpolicy_vnode_access2(crp, NMTOV(nodep), in nm_access_unlocked()
255 nodep->nm_vattr.va_uid, nodep->nm_vattr.va_mode << shift, in nm_access_unlocked()
270 struct namenode *nodep = VTONM(vp); in nm_setattr() local
271 struct vattr *nmvap = &nodep->nm_vattr; in nm_setattr()
281 (void) VOP_RWLOCK(nodep->nm_filevp, V_WRITELOCK_TRUE, ctp); in nm_setattr()
282 mutex_enter(&nodep->nm_lock); in nm_setattr()
290 nm_access_unlocked, nodep); in nm_setattr()
324 mutex_exit(&nodep->nm_lock); in nm_setattr()
325 VOP_RWUNLOCK(nodep->nm_filevp, V_WRITELOCK_TRUE, ctp); in nm_setattr()
339 struct namenode *nodep = VTONM(vp); in nm_access() local
342 mutex_enter(&nodep->nm_lock); in nm_access()
343 error = nm_access_unlocked(nodep, mode, crp); in nm_access()
344 mutex_exit(&nodep->nm_lock); in nm_access()
346 return (VOP_ACCESS(nodep->nm_filevp, mode, flags, crp, ct)); in nm_access()
396 struct namenode *nodep = VTONM(vp); in nm_inactive() local
406 if (!(nodep->nm_flag & NMNMNT)) { in nm_inactive()
407 ASSERT(nodep->nm_filep->f_vnode == nodep->nm_filevp); in nm_inactive()
408 (void) closef(nodep->nm_filep); in nm_inactive()
414 namenodeno_free(nodep->nm_vattr.va_nodeid); in nm_inactive()
415 kmem_free(nodep, sizeof (struct namenode)); in nm_inactive()