Page MenuHomeFreeBSD

Fix page accounting in kmem_bootstrap_free().
ClosedPublic

Authored by markj on Aug 3 2018, 3:15 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Aug 19, 4:23 AM
Unknown Object (File)
Tue, Aug 18, 12:46 PM
Unknown Object (File)
Tue, Aug 18, 10:51 AM
Unknown Object (File)
Tue, Aug 18, 8:07 AM
Unknown Object (File)
Sun, Aug 16, 2:28 PM
Unknown Object (File)
Fri, Aug 14, 3:56 PM
Unknown Object (File)
Wed, Aug 12, 1:12 PM
Unknown Object (File)
Tue, Aug 11, 7:38 AM
Subscribers

Details

Summary

We need to adjust v_free_count and v_page_count since we are freeing
directly to the physical memory allocator.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 18549
Build 18248: arc lint + arc unit

Event Timeline

sys/vm/vm_kern.c
720

What if the allocation span more than one domain ? I agree that this is unlikely.

sys/vm/vm_kern.c
720

Sigh, thanks. I lifted this out of the loop without thinking.

Move accounting into the loop.

Adjust the per-domain page count too.

This revision is now accepted and ready to land.Aug 3 2018, 4:17 PM
This revision was automatically updated to reflect the committed changes.