From 275c756730e6a8502b4c805ed283a5cb56f54848 Mon Sep 17 00:00:00 2001 From: Mateusz Guzik Date: Thu, 17 Mar 2022 18:30:10 +0100 Subject: [PATCH] FreeBSD: add missing replay check to an assert in zfs_xvattr_set Reviewed-by: Ryan Moeller Reviewed-by: Brian Behlendorf Signed-off-by: Mateusz Guzik Closes #13219 --- module/os/freebsd/zfs/zfs_znode.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module/os/freebsd/zfs/zfs_znode.c b/module/os/freebsd/zfs/zfs_znode.c index 317a35eefd..e4a1d2db78 100644 --- a/module/os/freebsd/zfs/zfs_znode.c +++ b/module/os/freebsd/zfs/zfs_znode.c @@ -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];