aboutsummaryrefslogtreecommitdiffstats
path: root/module/os
diff options
context:
space:
mode:
authorMateusz Guzik <[email protected]>2022-03-17 18:30:10 +0100
committerGitHub <[email protected]>2022-03-17 10:30:10 -0700
commita5920d24c04b64a96b4bd6be43a591a29f278b16 (patch)
treeab95668ca453e864df9b86fc63fae29e2cd8cd9b /module/os
parentbee314a798b9495bfa8368952461301fb7080a61 (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/os')
-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 fe73d2af4..5ca92f332 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];