Page MenuHomeFreeBSD

radix_trie: pass fewer params to node_get
ClosedPublic

Authored by dougm on Jun 23 2023, 8:50 AM.
Tags
None
Referenced Files
F151679878: D40723.id.diff
Thu, Apr 9, 11:35 PM
Unknown Object (File)
Sun, Mar 29, 8:25 AM
Unknown Object (File)
Wed, Mar 25, 1:25 AM
Unknown Object (File)
Mon, Mar 23, 12:58 AM
Unknown Object (File)
Sun, Mar 22, 2:16 AM
Unknown Object (File)
Fri, Mar 13, 3:09 AM
Unknown Object (File)
Fri, Mar 13, 3:04 AM
Unknown Object (File)
Mar 1 2026, 9:27 PM
Subscribers

Details

Summary

Let node_get calculate it's own owner value. Don't pass the count parameter, since it's always 2. Save 16 bytes in insert(). Move, without modifying, slot and trimkey to handle use-before-declaration problem.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dougm requested review of this revision.Jun 23 2023, 8:50 AM
dougm created this revision.
dougm added a reviewer: markj.

This patch needs a refresh after the trimkey patch.

markj added inline comments.
sys/kern/subr_pctrie.c
101

Perhaps remove the extra newline here since you're moving this function anyway.

This revision is now accepted and ready to land.Jun 27 2023, 2:00 PM
This revision was automatically updated to reflect the committed changes.