HomeFreeBSD

Use list_remove_head() where possible.

Description

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

Details

Provenance
mavAuthored on Jun 9 2023, 5:12 PM
GitHub <noreply@github.com>Committed on Jun 9 2023, 5:12 PM
Parents
rG55b1842f92a2: ZIL: Fix race introduced by f63811f0721.
Branches
Unknown
Tags
Unknown