Page MenuHomeFreeBSD

Fix page accounting in kmem_bootstrap_free().
ClosedPublic

Authored by markj on Aug 3 2018, 3:15 PM.
Tags
None
Referenced Files
F148063297: D16581.diff
Sun, Mar 15, 12:29 PM
F147917460: D16581.id46243.diff
Sat, Mar 14, 3:58 PM
Unknown Object (File)
Sat, Mar 14, 4:45 AM
Unknown Object (File)
Fri, Mar 13, 10:42 PM
Unknown Object (File)
Sat, Feb 21, 6:52 AM
Unknown Object (File)
Fri, Feb 20, 10:33 AM
Unknown Object (File)
Feb 9 2026, 9:23 PM
Unknown Object (File)
Feb 7 2026, 8:22 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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sys/vm/vm_kern.c
720 ↗(On Diff #46235)

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

sys/vm/vm_kern.c
720 ↗(On Diff #46235)

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.