FreeBSD: add missing replay check to an assert in zfs_xvattr_set

Reviewed-by: Ryan Moeller <freqlabs@FreeBSD.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
Closes #13219
This commit is contained in:
Mateusz Guzik 2022-03-17 18:30:10 +01:00 committed by GitHub
parent bee314a798
commit a5920d24c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -833,7 +833,9 @@ zfs_xvattr_set(znode_t *zp, xvattr_t *xvap, dmu_tx_t *tx)
xoap = xva_getxoptattr(xvap); xoap = xva_getxoptattr(xvap);
ASSERT3P(xoap, !=, NULL); ASSERT3P(xoap, !=, NULL);
if (zp->z_zfsvfs->z_replay == B_FALSE) {
ASSERT_VOP_IN_SEQC(ZTOV(zp)); ASSERT_VOP_IN_SEQC(ZTOV(zp));
}
if (XVA_ISSET_REQ(xvap, XAT_CREATETIME)) { if (XVA_ISSET_REQ(xvap, XAT_CREATETIME)) {
uint64_t times[2]; uint64_t times[2];