Page MenuHomeFreeBSD

Fix page accounting in kmem_bootstrap_free().
ClosedPublic

Authored by markj on Aug 3 2018, 3:15 PM.
Tags
None
Referenced Files
F157041428: D16581.id46250.diff
Mon, May 18, 2:23 AM
F157041323: D16581.id46245.diff
Mon, May 18, 2:23 AM
F157041279: D16581.id46235.diff
Mon, May 18, 2:22 AM
F157041263: D16581.id46245.diff
Mon, May 18, 2:22 AM
F157041251: D16581.id46245.diff
Mon, May 18, 2:22 AM
F157041171: D16581.id46243.diff
Mon, May 18, 2:22 AM
F157039494: D16581.diff
Mon, May 18, 2:12 AM
Unknown Object (File)
Tue, May 5, 2:13 PM
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 18552
Build 18251: arc lint + arc unit

Event Timeline

sys/vm/vm_kern.c
721

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

sys/vm/vm_kern.c
721

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.