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
Unknown Object (File)
Sun, May 17, 12:53 PM
Unknown Object (File)
Sat, May 16, 11:54 PM
Unknown Object (File)
Wed, May 13, 2:10 AM
Unknown Object (File)
Tue, May 12, 10:42 AM
Unknown Object (File)
Fri, May 8, 8:06 AM
Unknown Object (File)
Thu, May 7, 7:24 PM
Unknown Object (File)
Wed, May 6, 7:07 AM
Unknown Object (File)
Tue, May 5, 12:06 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.