From a5920d24c04b64a96b4bd6be43a591a29f278b16 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 fe73d2af49..5ca92f332c 100644 --- a/module/os/freebsd/zfs/zfs_znode.c +++ b/module/os/freebsd/zfs/zfs_znode.c @@ -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];