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:
parent
0bebcbcf5e
commit
275c756730
|
@ -839,7 +839,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];
|
||||||
|
|
Loading…
Reference in New Issue