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,
345 lr->lr_foid = zp->z_id;
347 LR_FOID_SET_SLOTS(lr->lr_foid, zp->z_dnodesize >> DNODE_SHIFT);
348 lr->lr_mode = zp->z_mode;
349 if (!IS_EPHEMERAL(KUID_TO_SUID(ZTOUID(zp)))) {
350 lr->lr_uid = (uint64_t)KUID_TO_SUID(ZTOUID(zp));
354 if (!IS_EPHEMERAL(KGID_TO_SGID(ZTOGID(zp)))) {
355 lr->lr_gid = (uint64_t)KGID_TO_SGID(ZTOGID(zp));
359 (void) sa_lookup(zp->z_sa_hdl, SA_ZPL_GEN(ZTOZSB(zp)), &lr->lr_gen,
361 (void) sa_lookup(zp->z_sa_hdl, SA_ZPL_CRTIME(ZTOZSB(zp)),
364 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)
484 lr->lr_foid = zp->z_id;
485 lr->lr_uid = KUID_TO_SUID(ZTOUID(zp));
486 lr->lr_gid = KGID_TO_SGID(ZTOGID(zp));
487 lr->lr_mode = zp->z_mode;
488 (void) sa_lookup(zp->z_sa_hdl, SA_ZPL_GEN(ZTOZSB(zp)), &lr->lr_gen,
490 (void) sa_lookup(zp->z_sa_hdl, SA_ZPL_CRTIME(ZTOZSB(zp)),
609 znode_t *zp, offset_t off, ssize_t resid, boolean_t commit,
612 dmu_buf_impl_t *db = (dmu_buf_impl_t *)sa_get_db(zp->z_sa_hdl);
613 uint32_t blocksize = zp->z_blksz;
618 if (zil_replaying(zilog, tx) || zp->z_unlinked ||
619 zfs_xattr_owner_unlinked(zp)) {
635 (void) sa_lookup(zp->z_sa_hdl, SA_ZPL_GEN(ZTOZSB(zp)), &gen,
678 lr->lr_foid = zp->z_id;
684 itx->itx_private = ZTOZSB(zp);
685 itx->itx_sync = (zp->z_sync_cnt != 0);
706 znode_t *zp, uint64_t off, uint64_t len)
711 if (zil_replaying(zilog, tx) || zp->z_unlinked ||
712 zfs_xattr_owner_unlinked(zp))
717 lr->lr_foid = zp->z_id;
721 itx->itx_sync = (zp->z_sync_cnt != 0);
730 znode_t *zp, vattr_t *vap, uint_t mask_applied, zfs_fuid_info_t *fuidp)
738 if (zil_replaying(zilog, tx) || zp->z_unlinked)
754 lr->lr_foid = zp->z_id;
783 itx->itx_sync = (zp->z_sync_cnt != 0);
792 znode_t *zp, const char *name, const void *value, size_t size)
800 if (zil_replaying(zilog, tx) || zp->z_unlinked)
807 lr->lr_foid = zp->z_id;
817 itx->itx_sync = (zp->z_sync_cnt != 0);
825 zfs_log_acl(zilog_t *zilog, dmu_tx_t *tx, znode_t *zp,
836 if (zil_replaying(zilog, tx) || zp->z_unlinked)
839 txtype = (ZTOZSB(zp)->z_version < ZPL_VERSION_FUID) ?
855 lr->lr_foid = zp->z_id;
883 itx->itx_sync = (zp->z_sync_cnt != 0);
891 zfs_log_clone_range(zilog_t *zilog, dmu_tx_t *tx, int txtype, znode_t *zp,
900 if (zil_replaying(zilog, tx) || zp->z_unlinked)
914 lr->lr_foid = zp->z_id;
921 itx->itx_sync = (zp->z_sync_cnt != 0);