Page MenuHomeFreeBSD

vfs_bio: initialize pctries
ClosedPublic

Authored by dougm on Jul 12 2023, 2:56 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jan 10, 7:14 PM
Unknown Object (File)
Mon, Jan 6, 4:42 AM
Unknown Object (File)
Sat, Dec 14, 3:21 PM
Unknown Object (File)
Nov 20 2024, 4:53 PM
Unknown Object (File)
Nov 20 2024, 4:53 PM
Unknown Object (File)
Nov 10 2024, 12:41 AM
Unknown Object (File)
Nov 9 2024, 6:17 AM
Unknown Object (File)
Oct 1 2024, 1:50 PM
Subscribers

Details

Summary

bufobj_init depends on fields bo_dirty.bv_root and bo_clean.bv_root being zeroed on entry and pctrie_init zeroing whatever is passed to them, and so does not call pctrie_init for either of them. That fails if pctrie_init ever changes to do something other that zeroing data, so add explicit calls to them.

Diff Detail

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

Event Timeline

dougm requested review of this revision.Jul 12 2023, 2:56 AM
dougm created this revision.
This revision is now accepted and ready to land.Jul 13 2023, 6:25 PM
This revision was automatically updated to reflect the committed changes.