Page MenuHomeFreeBSD

vfs_bio: initialize pctries
ClosedPublic

Authored by dougm on Jul 12 2023, 2:56 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, May 25, 2:51 PM
Unknown Object (File)
Tue, May 21, 9:57 AM
Unknown Object (File)
Fri, May 17, 3:21 PM
Unknown Object (File)
Fri, May 17, 12:27 PM
Unknown Object (File)
Apr 30 2024, 11:45 AM
Unknown Object (File)
Apr 26 2024, 1:08 AM
Unknown Object (File)
Mar 30 2024, 11:49 PM
Unknown Object (File)
Mar 25 2024, 5:06 AM
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

Lint
Lint Skipped
Unit
Tests Skipped

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.