mirror_zfs/lib/libspl/include/sys
Rob Norris 967b15b888 ZIL: allow zil_commit() to fail with error
This changes zil_commit() to have an int return, and updates all callers
to check it. There are no corresponding internal changes yet; it will
always return 0.

Since zil_commit() is an indication that the caller _really_ wants the
associated data to be durability stored, I've annotated it with the
__warn_unused_result__ compiler attribute (via __must_check), to emit a
warning if it's ever ussd without doing something with the return code.
I hope this will mean we never misuse it in the future.

Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Closes #17398
2025-08-08 16:43:09 -07:00
..
dktp SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
abd_impl_os.h abd_os: move headers from libzpool to libspl 2025-05-30 13:38:20 -07:00
abd_os.h abd_os: move headers from libzpool to libspl 2025-05-30 13:38:20 -07:00
acl_impl.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
acl.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
asm_linkage.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
backtrace.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
callb.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
cmn_err.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
cred.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
debug.h ZIL: allow zil_commit() to fail with error 2025-08-08 16:43:09 -07:00
dkio.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
dklabel.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
feature_tests.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
inttypes.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
isa_defs.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
kmem.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
kstat.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
list_impl.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
list.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
mhd.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
mkdev.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
mod.h libspl: implement ZFS_MODULE_PARAM for userspace 2025-07-15 15:46:51 -07:00
policy.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
poll.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
priv.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
processor.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
simd.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
stack.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
stdtypes.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
string.h Forbid b{copy,zero,cmp}(). Don't include <strings.h> for <string.h> 2022-03-15 15:13:48 -07:00
sunddi.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
systeminfo.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
time.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
trace_spl.h Enable use of DTRACE_PROBE* macros in "spl" module 2019-11-01 13:13:43 -07:00
trace_zfs.h Enable use of DTRACE_PROBE* macros in "spl" module 2019-11-01 13:13:43 -07:00
tunables.h libspl: add API for manipulating tunables 2025-07-15 15:46:58 -07:00
types32.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
types.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
uio.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
vnode.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
wmsum.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zone.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00