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
F108449682: D40723.diff
Fri, Jan 24, 9:53 PM
Unknown Object (File)
Tue, Jan 21, 4:54 PM
Unknown Object (File)
Tue, Jan 21, 8:09 AM
Unknown Object (File)
Fri, Jan 10, 5:33 AM
Unknown Object (File)
Nov 27 2024, 10:15 AM
Unknown Object (File)
Nov 15 2024, 6:08 AM
Unknown Object (File)
Nov 12 2024, 10:03 AM
Unknown Object (File)
Nov 8 2024, 2:36 AM
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

Lint
Lint Skipped
Unit
Tests Skipped

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.