mirror_zfs/include
Paul Dagnelie fbac52e1e9 Fix FDT rollback to not overwrite unnecessary fields (#17205)
When a dedup write fails, we try to roll the DDT entry back to a known
good state. However, this also rolls the refcounts and the last-update
time back to the state they were at when we started this write. This
doesn't appear to be able to cause any refcount leaks (after the fix in
17123). This PR prevents that from happening by only rolling back the
parts of the DDT entry that have been updated by the write so far.

Sponsored-by: iXsystems, Inc.
Sponsored-by: Klara, Inc.

Signed-off-by: Paul Dagnelie <paul.dagnelie@klarasystems.com>
Co-authored-by: Paul Dagnelie <paul.dagnelie@klarasystems.com>

Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
2025-04-16 09:59:45 -07:00
..
os simd_powerpc.h: enable FPU on FreeBSD 2025-04-16 09:59:45 -07:00
sys Fix FDT rollback to not overwrite unnecessary fields (#17205) 2025-04-16 09:59:45 -07:00
.gitignore OpenZFS restructuring - move platform specific sources 2019-09-06 11:26:26 -07:00
cityhash.h SPDX: license tags: MIT 2025-04-16 09:59:44 -07:00
libnvpair.h SPDX: license tags: CDDL-1.0 2025-04-16 09:59:44 -07:00
libuutil_common.h SPDX: license tags: CDDL-1.0 2025-04-16 09:59:44 -07:00
libuutil_impl.h SPDX: license tags: CDDL-1.0 2025-04-16 09:59:44 -07:00
libuutil.h SPDX: license tags: CDDL-1.0 2025-04-16 09:59:44 -07:00
libzdb.h libzdb: Initial breakout of libzdb 2024-02-05 10:00:41 -08:00
libzfs_core.h SPDX: license tags: CDDL-1.0 2025-04-16 09:59:44 -07:00
libzfs.h SPDX: license tags: CDDL-1.0 2025-04-16 09:59:44 -07:00
libzfsbootenv.h SPDX: license tags: CDDL-1.0 2025-04-16 09:59:44 -07:00
libzutil.h SPDX: license tags: CDDL-1.0 2025-04-16 09:59:44 -07:00
Makefile.am include: move zio_priority_t into zfs.h 2025-02-28 00:42:29 +05:00
thread_pool.h SPDX: license tags: CDDL-1.0 2025-04-16 09:59:44 -07:00
zfeature_common.h SPDX: license tags: CDDL-1.0 2025-04-16 09:59:44 -07:00
zfs_comutil.h SPDX: license tags: CDDL-1.0 2025-04-16 09:59:44 -07:00
zfs_deleg.h SPDX: license tags: CDDL-1.0 2025-04-16 09:59:44 -07:00
zfs_fletcher.h SPDX: license tags: CDDL-1.0 2025-04-16 09:59:44 -07:00
zfs_namecheck.h SPDX: license tags: CDDL-1.0 2025-04-16 09:59:44 -07:00
zfs_prop.h SPDX: license tags: CDDL-1.0 2025-04-16 09:59:44 -07:00
zfs_valstr.h SPDX: license tags: CDDL-1.0 2025-04-16 09:59:44 -07:00