Lines Matching defs:vp
132 audit_record_write(struct vnode *vp, struct vfs_context *ctx, void *data,
146 if (vp == NULL)
149 if (vnode_getwithref(vp))
152 mnt_stat = &vp->v_mount->mnt_vfsstat;
159 error = vfs_update_vfsstat(vp->v_mount, ctx, VFS_KERNEL_EVENT);
162 error = vnode_size(vp, &file_size, ctx);
254 error = vn_rdwr(UIO_WRITE, vp, data, len, (off_t)0, UIO_SYSSPACE,
273 (void)VNOP_FSYNC(vp, MNT_WAIT, ctx);
278 vnode_put(vp);
288 (void)VNOP_FSYNC(vp, MNT_WAIT, ctx);
301 (void)VNOP_FSYNC(vp, MNT_WAIT, ctx);
305 vnode_put(vp);
483 audit_rotate_vnode(kauth_cred_t cred, struct vnode *vp)
488 KASSERT((cred != NULL && vp != NULL) || (cred == NULL && vp == NULL),
489 ("audit_rotate_vnode: cred %p vp %p", cred, vp));
493 if (audit_enabled && (NULL == vp)) {
530 audit_vp = vp;