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)
Mar 8 2024, 12:13 AM
Unknown Object (File)
Dec 20 2023, 1:18 AM
Unknown Object (File)
Nov 4 2023, 4:00 PM
Unknown Object (File)
Oct 12 2023, 12:47 AM
Unknown Object (File)
Oct 3 2023, 3:58 PM
Unknown Object (File)
Sep 30 2023, 1:40 PM
Unknown Object (File)
Sep 17 2023, 4:12 AM
Unknown Object (File)
Sep 12 2023, 5:48 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

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.