Lines Matching defs:vp

81 		    struct vnode *vp, int attrnamespace, const char *attrname,
88 static int ufs_extattr_get(struct vnode *vp, int attrnamespace,
91 static int ufs_extattr_set(struct vnode *vp, int attrnamespace,
94 static int ufs_extattr_rm(struct vnode *vp, int attrnamespace,
248 struct vnode **vp, struct thread *td)
311 *vp = target_vp;
318 * namespace, and proc. Will perform a VOP_OPEN() on the vp, so expects vp
324 ufs_extattr_enable_with_open(struct ufsmount *ump, struct vnode *vp,
329 error = VOP_OPEN(vp, FREAD|FWRITE, td->td_ucred, td, NULL);
333 VOP_UNLOCK(vp, 0);
337 VOP_ADD_WRITECOUNT(vp, 1);
339 vref(vp);
341 VOP_UNLOCK(vp, 0);
343 error = ufs_extattr_enable(ump, attrnamespace, attrname, vp, td);
345 vn_close(vp, FREAD|FWRITE, td->td_ucred, td);
848 ufs_extattr_get(struct vnode *vp, int attrnamespace, const char *name,
855 struct mount *mp = vp->v_mount;
857 struct inode *ip = VTOI(vp);
868 error = extattr_check_cred(vp, attrnamespace, cred, td, VREAD);
913 if (attribute->uele_backing_vnode != vp)
978 if (attribute->uele_backing_vnode != vp)
1055 ufs_extattr_set(struct vnode *vp, int attrnamespace, const char *name,
1062 struct mount *mp = vp->v_mount;
1064 struct inode *ip = VTOI(vp);
1068 if (vp->v_mount->mnt_flag & MNT_RDONLY)
1075 error = extattr_check_cred(vp, attrnamespace, cred, td, VWRITE);
1122 if (attribute->uele_backing_vnode != vp)
1152 if (attribute->uele_backing_vnode != vp)
1163 ufs_extattr_rm(struct vnode *vp, int attrnamespace, const char *name,
1170 struct mount *mp = vp->v_mount;
1172 struct inode *ip = VTOI(vp);
1176 if (vp->v_mount->mnt_flag & MNT_RDONLY)
1183 error = extattr_check_cred(vp, attrnamespace, cred, td, VWRITE);
1218 if (attribute->uele_backing_vnode != vp)
1282 ufs_extattr_vnode_inactive(struct vnode *vp, struct thread *td)
1285 struct mount *mp = vp->v_mount;
1304 ufs_extattr_rm(vp, uele->uele_attrnamespace,