Lines Matching refs:zp

597 	znode_t *dzp, *zp;  in zfs_replay_link()  local
607 if ((error = zfs_zget(zfsvfs, lr->lr_link_obj, &zp)) != 0) { in zfs_replay_link()
615 error = VOP_LINK(ZTOV(dzp), ZTOV(zp), name, kcred, NULL, vflg); in zfs_replay_link()
617 VN_RELE(ZTOV(zp)); in zfs_replay_link()
663 znode_t *zp; in zfs_replay_write() local
671 if ((error = zfs_zget(zfsvfs, lr->lr_foid, &zp)) != 0) { in zfs_replay_write()
706 if (zp->z_size < eod) in zfs_replay_write()
710 error = vn_rdwr(UIO_WRITE, ZTOV(zp), data, length, offset, in zfs_replay_write()
713 VN_RELE(ZTOV(zp)); in zfs_replay_write()
730 znode_t *zp; in zfs_replay_write2() local
737 if ((error = zfs_zget(zfsvfs, lr->lr_foid, &zp)) != 0) in zfs_replay_write2()
742 if (end > zp->z_size) { in zfs_replay_write2()
745 zp->z_size = end; in zfs_replay_write2()
746 dmu_tx_hold_sa(tx, zp->z_sa_hdl, B_FALSE); in zfs_replay_write2()
749 VN_RELE(ZTOV(zp)); in zfs_replay_write2()
758 (void) sa_update(zp->z_sa_hdl, SA_ZPL_SIZE(zfsvfs), in zfs_replay_write2()
759 (void *)&zp->z_size, sizeof (uint64_t), tx); in zfs_replay_write2()
767 VN_RELE(ZTOV(zp)); in zfs_replay_write2()
777 znode_t *zp; in zfs_replay_truncate() local
784 if ((error = zfs_zget(zfsvfs, lr->lr_foid, &zp)) != 0) in zfs_replay_truncate()
793 error = VOP_SPACE(ZTOV(zp), F_FREESP, &fl, FWRITE | FOFFMAX, in zfs_replay_truncate()
796 VN_RELE(ZTOV(zp)); in zfs_replay_truncate()
806 znode_t *zp; in zfs_replay_setattr() local
821 if ((error = zfs_zget(zfsvfs, lr->lr_foid, &zp)) != 0) in zfs_replay_setattr()
846 error = VOP_SETATTR(ZTOV(zp), vap, 0, kcred, NULL); in zfs_replay_setattr()
850 VN_RELE(ZTOV(zp)); in zfs_replay_setattr()
862 znode_t *zp; in zfs_replay_acl_v0() local
870 if ((error = zfs_zget(zfsvfs, lr->lr_foid, &zp)) != 0) in zfs_replay_acl_v0()
880 error = VOP_SETSECATTR(ZTOV(zp), &vsa, 0, kcred, NULL); in zfs_replay_acl_v0()
882 VN_RELE(ZTOV(zp)); in zfs_replay_acl_v0()
908 znode_t *zp; in zfs_replay_acl() local
921 if ((error = zfs_zget(zfsvfs, lr->lr_foid, &zp)) != 0) in zfs_replay_acl()
940 error = VOP_SETSECATTR(ZTOV(zp), &vsa, 0, kcred, NULL); in zfs_replay_acl()
946 VN_RELE(ZTOV(zp)); in zfs_replay_acl()