Page MenuHomeFreeBSD

vm_phys_avail_check(): Check index parity, fix panic messages
AcceptedPublic

Authored by olce on Thu, Jan 23, 5:15 PM.
Tags
None
Referenced Files
F109269471: D48626.id149782.diff
Sun, Feb 2, 8:31 PM
Unknown Object (File)
Sun, Feb 2, 11:34 AM
Unknown Object (File)
Sun, Feb 2, 2:34 AM
Unknown Object (File)
Thu, Jan 30, 8:49 AM
Unknown Object (File)
Thu, Jan 30, 5:16 AM
Subscribers

Details

Reviewers
markj
dougm
alc
Summary

The passed index must be the start of a chunk in phys_avail[], so must
be even. Test for that and print a separate panic message.

While here, fix panic messages: In one, the wrong chunk boundary was
printed, and in another, the desired but not the actual condition was
printed, possibly leading to confusion.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 61925
Build 58809: arc lint + arc unit