Lines Matching defs:vp
69 ext2_update(struct vnode *vp, int waitfor)
76 ASSERT_VOP_ELOCKED(vp, "ext2_update");
77 ext2_itimes(vp);
78 ip = VTOI(vp);
93 if (waitfor && !DOINGASYNC(vp))
109 ext2_truncate(struct vnode *vp, off_t length, int flags, struct ucred *cred,
112 struct vnode *ovp = vp;
128 ASSERT_VOP_LOCKED(vp, "ext2_truncate");
164 vnode_pager_setsize(vp, osize);
363 struct vnode *vp;
389 vp = ITOV(ip);
390 bp = getblk(vp, lbn, (int)fs->e2fs_bsize, 0, 0, 0);
414 if (DOINGASYNC(vp)) {
465 struct vnode *vp = ap->a_vp;
466 struct inode *ip = VTOI(vp);
476 error = ext2_truncate(vp, (off_t)0, 0, NOCRED, td);
481 ext2_vfree(vp, ip->i_number, mode);
484 ext2_update(vp, 0);
491 vrecycle(vp, td);
502 struct vnode *vp = ap->a_vp;
504 ip = VTOI(vp);
507 ext2_update(vp, 0);
509 vfs_hash_remove(vp);
510 free(vp->v_data, M_EXT2NODE);
511 vp->v_data = 0;
512 vnode_destroy_vobject(vp);