Use list_remove_head() where possible.
commitb3ad3f48d9d215ce9bea1090d86ced17862ea441
authorAlexander Motin <mav@FreeBSD.org>
Fri, 9 Jun 2023 17:12:52 +0000 (9 13:12 -0400)
committerGitHub <noreply@github.com>
Fri, 9 Jun 2023 17:12:52 +0000 (9 10:12 -0700)
tree1e0b2cf93d6957ae38b9c924a49ccd9af1ef3916
parent55b1842f92a24fe7192d129bca7b60882080d31a
Use list_remove_head() where possible.

... instead of list_head() + list_remove().  On FreeBSD the list
functions are not inlined, so in addition to more compact code
this also saves another function call.

Reviewed-by: Brian Atkinson <batkinson@lanl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored by: iXsystems, Inc.
Closes #14955
20 files changed:
cmd/zed/agents/zfs_agents.c
cmd/zed/agents/zfs_mod.c
module/os/freebsd/zfs/zfs_acl.c
module/os/linux/zfs/zfs_acl.c
module/zfs/arc.c
module/zfs/bplist.c
module/zfs/dmu_objset.c
module/zfs/dmu_tx.c
module/zfs/dsl_dataset.c
module/zfs/dsl_dir.c
module/zfs/dsl_scan.c
module/zfs/fm.c
module/zfs/refcount.c
module/zfs/spa.c
module/zfs/spa_misc.c
module/zfs/vdev_indirect.c
module/zfs/zfs_fm.c
module/zfs/zfs_fuid.c
module/zfs/zfs_onexit.c
module/zfs/zvol.c