mirror_zfs/include/os/linux/spl/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
..
ia32 SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
acl.h SPDX: license tags: GPL-2.0-or-later 2025-03-13 17:57:09 -07:00
atomic.h linux/atomic: fill out API for atomic pointer ops 2025-07-31 15:51:47 -07:00
byteorder.h SPDX: license tags: GPL-2.0-or-later 2025-03-13 17:57:09 -07:00
callb.h SPDX: license tags: GPL-2.0-or-later 2025-03-13 17:57:09 -07:00
callo.h SPDX: license tags: GPL-2.0-or-later 2025-03-13 17:57:09 -07:00
cmn_err.h SPDX: license tags: GPL-2.0-or-later 2025-03-13 17:57:09 -07:00
condvar.h SPDX: license tags: GPL-2.0-or-later 2025-03-13 17:57:09 -07:00
cred.h SPDX: license tags: GPL-2.0-or-later 2025-03-13 17:57:09 -07:00
ctype.h SPDX: license tags: GPL-2.0-or-later 2025-03-13 17:57:09 -07:00
debug.h ZIL: allow zil_commit() to fail with error 2025-08-08 16:43:09 -07:00
disp.h SPDX: license tags: GPL-2.0-or-later 2025-03-13 17:57:09 -07:00
errno.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
fcntl.h SPDX: license tags: GPL-2.0-or-later 2025-03-13 17:57:09 -07:00
file.h SPDX: license tags: GPL-2.0-or-later 2025-03-13 17:57:09 -07:00
inttypes.h SPDX: license tags: GPL-2.0-or-later 2025-03-13 17:57:09 -07:00
isa_defs.h SPDX: license tags: GPL-2.0-or-later 2025-03-13 17:57:09 -07:00
kmem_cache.h SPDX: license tags: GPL-2.0-or-later 2025-03-13 17:57:09 -07:00
kmem.h linux/kmem: remove HAVE_ATOMIC64_T and kmem_alloc_used wrappers 2025-07-22 15:08:07 -07:00
kstat.h linux/kstat: allow multi-level module names 2025-03-20 16:24:50 -07:00
list.h SPDX: license tags: GPL-2.0-or-later 2025-03-13 17:57:09 -07:00
misc.h Skip dbuf_evict_one() from dbuf_evict_notify() for reclaim thread 2025-08-01 16:47:41 -07:00
mod.h mod.h: make consistent across all three platforms 2025-07-15 15:46:14 -07:00
mutex.h Prefer VERIFY0P(n) over VERIFY3P(n, ==, NULL) 2025-08-07 11:41:42 -07:00
param.h SPDX: license tags: GPL-2.0-or-later 2025-03-13 17:57:09 -07:00
proc.h SPDX: license tags: GPL-2.0-or-later 2025-03-13 17:57:09 -07:00
processor.h SPDX: license tags: GPL-2.0-or-later 2025-03-13 17:57:09 -07:00
procfs_list.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
random.h SPDX: license tags: GPL-2.0-or-later 2025-03-13 17:57:09 -07:00
rwlock.h SPDX: license tags: GPL-2.0-or-later 2025-03-13 17:57:09 -07:00
shrinker.h SPDX: license tags: GPL-2.0-or-later 2025-03-13 17:57:09 -07:00
sid.h SPDX: license tags: GPL-2.0-or-later 2025-03-13 17:57:09 -07:00
signal.h SPDX: license tags: GPL-2.0-or-later 2025-03-13 17:57:09 -07:00
simd.h SPDX: license tags: GPL-2.0-or-later 2025-03-13 17:57:09 -07:00
stat.h SPDX: license tags: GPL-2.0-or-later 2025-03-13 17:57:09 -07:00
string.h SPDX: license tags: GPL-2.0-or-later 2025-03-13 17:57:09 -07:00
sunddi.h SPDX: license tags: GPL-2.0-or-later 2025-03-13 17:57:09 -07:00
sysmacros.h spa: ZIO_TASKQ_ISSUE: Use symbolic priority 2025-06-30 10:24:23 -04:00
systeminfo.h SPDX: license tags: GPL-2.0-or-later 2025-03-13 17:57:09 -07:00
taskq.h SPDX: license tags: GPL-2.0-or-later 2025-03-13 17:57:09 -07:00
thread.h SPDX: license tags: GPL-2.0-or-later 2025-03-13 17:57:09 -07:00
time.h SPDX: license tags: GPL-2.0-or-later 2025-03-13 17:57:09 -07:00
timer.h SPDX: license tags: GPL-2.0-or-later 2025-03-13 17:57:09 -07:00
trace_spl.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
trace_taskq.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
trace.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
tsd.h SPDX: license tags: GPL-2.0-or-later 2025-03-13 17:57:09 -07:00
types32.h SPDX: license tags: GPL-2.0-or-later 2025-03-13 17:57:09 -07:00
types.h SPDX: license tags: GPL-2.0-or-later 2025-03-13 17:57:09 -07:00
uio.h linux/uio: remove "skip" offset for UIO_ITER 2025-05-11 12:46:40 -04:00
user.h SPDX: license tags: GPL-2.0-or-later 2025-03-13 17:57:09 -07:00
vfs.h SPDX: license tags: GPL-2.0-or-later 2025-03-13 17:57:09 -07:00
vmem.h SPDX: license tags: GPL-2.0-or-later 2025-03-13 17:57:09 -07:00
vmsystm.h SPDX: license tags: GPL-2.0-or-later 2025-03-13 17:57:09 -07:00
vnode.h SPDX: license tags: GPL-2.0-or-later 2025-03-13 17:57:09 -07:00
wait.h SPDX: license tags: GPL-2.0-or-later 2025-03-13 17:57:09 -07:00
wmsum.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zmod.h SPDX: license tags: GPL-2.0-or-later 2025-03-13 17:57:09 -07:00
zone.h SPDX: license tags: GPL-2.0-or-later 2025-03-13 17:57:09 -07:00