Lines Matching defs:zp
223 * If zp is an xattr node, check whether the xattr owner is unlinked.
227 zfs_xattr_owner_unlinked(znode_t *zp)
232 znode_t *tzp = zp;
239 * if zp is XATTR node, keep walking up via z_xattr_parent until we
243 ASSERT3U(zp->z_xattr_parent, !=, 0);
249 if (tzp != zp)
254 if (tzp != zp)
257 zhold(zp);
259 * if zp is XATTR node, keep walking up via z_xattr_parent until we
262 while (zp->z_pflags & ZFS_XATTR) {
263 ASSERT3U(zp->z_xattr_parent, !=, 0);
264 if (zfs_zget(ZTOZSB(zp), zp->z_xattr_parent, &dzp) != 0) {
269 zrele(zp);
270 zp = dzp;
271 unlinked = zp->z_unlinked;
273 zrele(zp);
299 znode_t *dzp, znode_t *zp, const char *name, vsecattr_t *vsecp,
347 lr->lr_foid = zp->z_id;
349 LR_FOID_SET_SLOTS(lr->lr_foid, zp->z_dnodesize >> DNODE_SHIFT);
350 lr->lr_mode = zp->z_mode;
351 if (!IS_EPHEMERAL(KUID_TO_SUID(ZTOUID(zp)))) {
352 lr->lr_uid = (uint64_t)KUID_TO_SUID(ZTOUID(zp));
356 if (!IS_EPHEMERAL(KGID_TO_SGID(ZTOGID(zp)))) {
357 lr->lr_gid = (uint64_t)KGID_TO_SGID(ZTOGID(zp));
361 (void) sa_lookup(zp->z_sa_hdl, SA_ZPL_GEN(ZTOZSB(zp)), &lr->lr_gen,
363 (void) sa_lookup(zp->z_sa_hdl, SA_ZPL_CRTIME(ZTOZSB(zp)),
366 if (sa_lookup(zp->z_sa_hdl, SA_ZPL_RDEV(ZTOZSB(zp)), &lr->lr_rdev,
448 znode_t *dzp, znode_t *zp, const char *name)
460 lr->lr_link_obj = zp->z_id;
471 znode_t *dzp, znode_t *zp, const char *name, const char *link)
486 lr->lr_foid = zp->z_id;
487 lr->lr_uid = KUID_TO_SUID(ZTOUID(zp));
488 lr->lr_gid = KGID_TO_SGID(ZTOGID(zp));
489 lr->lr_mode = zp->z_mode;
490 (void) sa_lookup(zp->z_sa_hdl, SA_ZPL_GEN(ZTOZSB(zp)), &lr->lr_gen,
492 (void) sa_lookup(zp->z_sa_hdl, SA_ZPL_CRTIME(ZTOZSB(zp)),
613 znode_t *zp, offset_t off, ssize_t resid, boolean_t commit,
616 dmu_buf_impl_t *db = (dmu_buf_impl_t *)sa_get_db(zp->z_sa_hdl);
617 uint32_t blocksize = zp->z_blksz;
622 if (zil_replaying(zilog, tx) || zp->z_unlinked ||
623 zfs_xattr_owner_unlinked(zp)) {
639 (void) sa_lookup(zp->z_sa_hdl, SA_ZPL_GEN(ZTOZSB(zp)), &gen,
682 lr->lr_foid = zp->z_id;
688 itx->itx_private = ZTOZSB(zp);
689 itx->itx_sync = (zp->z_sync_cnt != 0);
710 znode_t *zp, uint64_t off, uint64_t len)
715 if (zil_replaying(zilog, tx) || zp->z_unlinked ||
716 zfs_xattr_owner_unlinked(zp))
721 lr->lr_foid = zp->z_id;
725 itx->itx_sync = (zp->z_sync_cnt != 0);
734 znode_t *zp, vattr_t *vap, uint_t mask_applied, zfs_fuid_info_t *fuidp)
742 if (zil_replaying(zilog, tx) || zp->z_unlinked)
758 lr->lr_foid = zp->z_id;
787 itx->itx_sync = (zp->z_sync_cnt != 0);
796 znode_t *zp, const char *name, const void *value, size_t size)
803 if (zil_replaying(zilog, tx) || zp->z_unlinked)
810 lr->lr_foid = zp->z_id;
819 itx->itx_sync = (zp->z_sync_cnt != 0);
827 zfs_log_acl(zilog_t *zilog, dmu_tx_t *tx, znode_t *zp,
838 if (zil_replaying(zilog, tx) || zp->z_unlinked)
841 txtype = (ZTOZSB(zp)->z_version < ZPL_VERSION_FUID) ?
857 lr->lr_foid = zp->z_id;
885 itx->itx_sync = (zp->z_sync_cnt != 0);
893 zfs_log_clone_range(zilog_t *zilog, dmu_tx_t *tx, int txtype, znode_t *zp,
902 if (zil_replaying(zilog, tx) || zp->z_unlinked)
916 lr->lr_foid = zp->z_id;
923 itx->itx_sync = (zp->z_sync_cnt != 0);