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 openzfs#13219
  • Loading branch information
mjguzik authored and andrewc12 committed Sep 23, 2022
1 parent 7da4b47 commit 05ec243
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 @@ -833,7 +833,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 05ec243

Please sign in to comment.