HomeFreeBSD

rb_tree: fine-tune RB_REMOVE

Description

rb_tree: fine-tune RB_REMOVE

Improve RB_REMOVE by reading the fields of the removed node only once,
and by not writing to the removed node.

Reviewed by: kib
Discussed with: markj
MFC after: 3 weeks
Differential Revision: https://reviews.freebsd.org/D36288

Details

Provenance
dougmAuthored on Aug 28 2022, 5:43 AM
Reviewer
kib
Differential Revision
D36288: rb_tree: optimize removal
Parents
rGb875d4f5ddcb: nfsd: Update console message for no session found
Branches
Unknown
Tags
Unknown