git: b3b50e64d7e4 - main - zfs: add missing replay check to an assert in zfs_xvattr_set
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 15 Mar 2022 11:42:13 UTC
The branch main has been updated by mjg:
URL: https://cgit.FreeBSD.org/src/commit/?id=b3b50e64d7e4c28bd0fd6323591ed811633826e4
commit b3b50e64d7e4c28bd0fd6323591ed811633826e4
Author: Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2022-03-15 11:38:23 +0000
Commit: Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2022-03-15 11:38:58 +0000
zfs: add missing replay check to an assert in zfs_xvattr_set
---
sys/contrib/openzfs/module/os/freebsd/zfs/zfs_znode.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_znode.c b/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_znode.c
index e03840166ba4..51545df8fe45 100644
--- a/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_znode.c
+++ b/sys/contrib/openzfs/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];