• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/contrib/openzfs/module/zfs/

Lines Matching refs:zp

226  * If zp is an xattr node, check whether the xattr owner is unlinked.
230 zfs_xattr_owner_unlinked(znode_t *zp)
235 znode_t *tzp = zp;
242 * if zp is XATTR node, keep walking up via z_xattr_parent until we
246 ASSERT3U(zp->z_xattr_parent, !=, 0);
252 if (tzp != zp)
257 if (tzp != zp)
260 zhold(zp);
262 * if zp is XATTR node, keep walking up via z_xattr_parent until we
265 while (zp->z_pflags & ZFS_XATTR) {
266 ASSERT3U(zp->z_xattr_parent, !=, 0);
267 if (zfs_zget(ZTOZSB(zp), zp->z_xattr_parent, &dzp) != 0) {
272 zrele(zp);
273 zp = dzp;
274 unlinked = zp->z_unlinked;
276 zrele(zp);
302 znode_t *dzp, znode_t *zp, const char *name, vsecattr_t *vsecp,
348 lr->lr_foid = zp->z_id;
350 LR_FOID_SET_SLOTS(lr->lr_foid, zp->z_dnodesize >> DNODE_SHIFT);
351 lr->lr_mode = zp->z_mode;
352 if (!IS_EPHEMERAL(KUID_TO_SUID(ZTOUID(zp)))) {
353 lr->lr_uid = (uint64_t)KUID_TO_SUID(ZTOUID(zp));
357 if (!IS_EPHEMERAL(KGID_TO_SGID(ZTOGID(zp)))) {
358 lr->lr_gid = (uint64_t)KGID_TO_SGID(ZTOGID(zp));
362 (void) sa_lookup(zp->z_sa_hdl, SA_ZPL_GEN(ZTOZSB(zp)), &lr->lr_gen,
364 (void) sa_lookup(zp->z_sa_hdl, SA_ZPL_CRTIME(ZTOZSB(zp)),
367 if (sa_lookup(zp->z_sa_hdl, SA_ZPL_RDEV(ZTOZSB(zp)), &lr->lr_rdev,
451 znode_t *dzp, znode_t *zp, const char *name)
463 lr->lr_link_obj = zp->z_id;
474 znode_t *dzp, znode_t *zp, const char *name, const char *link)
487 lr->lr_foid = zp->z_id;
488 lr->lr_uid = KUID_TO_SUID(ZTOUID(zp));
489 lr->lr_gid = KGID_TO_SGID(ZTOGID(zp));
490 lr->lr_mode = zp->z_mode;
491 (void) sa_lookup(zp->z_sa_hdl, SA_ZPL_GEN(ZTOZSB(zp)), &lr->lr_gen,
493 (void) sa_lookup(zp->z_sa_hdl, SA_ZPL_CRTIME(ZTOZSB(zp)),
536 znode_t *zp, offset_t off, ssize_t resid, int ioflag,
539 dmu_buf_impl_t *db = (dmu_buf_impl_t *)sa_get_db(zp->z_sa_hdl);
540 uint32_t blocksize = zp->z_blksz;
545 if (zil_replaying(zilog, tx) || zp->z_unlinked ||
546 zfs_xattr_owner_unlinked(zp)) {
566 (void) sa_lookup(zp->z_sa_hdl, SA_ZPL_GEN(ZTOZSB(zp)), &gen,
609 lr->lr_foid = zp->z_id;
615 itx->itx_private = ZTOZSB(zp);
618 if (!(ioflag & (O_SYNC | O_DSYNC)) && (zp->z_sync_cnt == 0) &&
636 znode_t *zp, uint64_t off, uint64_t len)
641 if (zil_replaying(zilog, tx) || zp->z_unlinked ||
642 zfs_xattr_owner_unlinked(zp))
647 lr->lr_foid = zp->z_id;
651 itx->itx_sync = (zp->z_sync_cnt != 0);
660 znode_t *zp, vattr_t *vap, uint_t mask_applied, zfs_fuid_info_t *fuidp)
668 if (zil_replaying(zilog, tx) || zp->z_unlinked)
684 lr->lr_foid = zp->z_id;
713 itx->itx_sync = (zp->z_sync_cnt != 0);
721 zfs_log_acl(zilog_t *zilog, dmu_tx_t *tx, znode_t *zp,
732 if (zil_replaying(zilog, tx) || zp->z_unlinked)
735 txtype = (ZTOZSB(zp)->z_version < ZPL_VERSION_FUID) ?
751 lr->lr_foid = zp->z_id;
779 itx->itx_sync = (zp->z_sync_cnt != 0);