aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiva Mahadevan <siva@FreeBSD.org>2026-03-14 03:54:46 +0000
committerSiva Mahadevan <siva@FreeBSD.org>2026-03-14 15:34:03 +0000
commit922d73540d2d9897e5e8160c445cefa13581564e (patch)
treed83fa0e036ce2a03afd3675a34d2fbabd0c7b4e5
parent736d8852e190f69dc93206ed3fb2d1f712dc3ad1 (diff)
tarfs: swap deprecated ZSTD_resetDStream() with ZSTD_DCtx_reset()
ZSTD_resetDStream() is deprecated since 1.5.4: https://github.com/facebook/zstd/commit/5d8cfa6b96a6442ab1251f9de3b47a0eb12561a0 This change is needed to MFV zstd 1.5.7. Approved by: emaste (mentor) MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D55835
-rw-r--r--sys/fs/tarfs/tarfs_io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/fs/tarfs/tarfs_io.c b/sys/fs/tarfs/tarfs_io.c
index e250c5cbce5a..0eff12c21d3f 100644
--- a/sys/fs/tarfs/tarfs_io.c
+++ b/sys/fs/tarfs/tarfs_io.c
@@ -355,7 +355,7 @@ tarfs_zread_zstd(struct tarfs_zio *zio, struct uio *uiop)
if (reset) {
zio->ipos = zio->idx[zio->curidx].i;
zio->opos = zio->idx[zio->curidx].o;
- ZSTD_resetDStream(zstd->zds);
+ ZSTD_DCtx_reset(zstd->zds, ZSTD_reset_session_only);
TARFS_DPF(ZIDX, "%s: skipping to index %u = i %zu o %zu\n", __func__,
zio->curidx, (size_t)zio->ipos, (size_t)zio->opos);
} else {
@@ -511,7 +511,7 @@ fail_unlocked:
zio->curidx = 0;
zio->ipos = zio->idx[0].i;
zio->opos = zio->idx[0].o;
- ZSTD_resetDStream(zstd->zds);
+ ZSTD_DCtx_reset(zstd->zds, ZSTD_reset_session_only);
}
return (error);
}