Skip to content

Commit

Permalink
FreeBSD: add missing replay check to an assert in zfs_xvattr_set
Browse files Browse the repository at this point in the history
Reviewed-by: Ryan Moeller <freqlabs@FreeBSD.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
Closes #13219
  • Loading branch information
mjguzik authored and usaleem-ix committed Mar 18, 2022
1 parent 0bebcbc commit b7cbb2f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion module/os/freebsd/zfs/zfs_znode.c
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,9 @@ zfs_xvattr_set(znode_t *zp, xvattr_t *xvap, dmu_tx_t *tx)
xoap = xva_getxoptattr(xvap);
ASSERT3P(xoap, !=, NULL);

ASSERT_VOP_IN_SEQC(ZTOV(zp));
if (zp->z_zfsvfs->z_replay == B_FALSE) {
ASSERT_VOP_IN_SEQC(ZTOV(zp));
}

if (XVA_ISSET_REQ(xvap, XAT_CREATETIME)) {
uint64_t times[2];
Expand Down

0 comments on commit b7cbb2f

Please sign in to comment.