aboutsummaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorMateusz Guzik <[email protected]>2022-03-17 18:30:10 +0100
committerTony Hutter <[email protected]>2022-03-18 17:11:43 -0700
commit275c756730e6a8502b4c805ed283a5cb56f54848 (patch)
treefb97e5c5dad0469553189b3d3475bc295100332b /module
parent0bebcbcf5e33e61ed146edef4f91b5f621512a8f (diff)
FreeBSD: add missing replay check to an assert in zfs_xvattr_set
Reviewed-by: Ryan Moeller <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Mateusz Guzik <[email protected]> Closes #13219
Diffstat (limited to 'module')
-rw-r--r--module/os/freebsd/zfs/zfs_znode.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/module/os/freebsd/zfs/zfs_znode.c b/module/os/freebsd/zfs/zfs_znode.c
index 317a35eef..e4a1d2db7 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];