Page MenuHomeFreeBSD

vfs_bio: initialize pctries
ClosedPublic

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

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.