Page MenuHomeFreeBSD

vm_pageout: shrink pageout array
ClosedPublic

Authored by dougm on Aug 1 2024, 9:35 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sep 22 2024, 11:12 PM
Unknown Object (File)
Sep 22 2024, 1:55 PM
Unknown Object (File)
Sep 22 2024, 1:07 AM
Unknown Object (File)
Sep 18 2024, 10:06 PM
Unknown Object (File)
Sep 18 2024, 6:36 AM
Unknown Object (File)
Sep 17 2024, 3:29 PM
Unknown Object (File)
Sep 17 2024, 11:21 AM
Unknown Object (File)
Sep 16 2024, 10:29 PM
Subscribers

Details

Summary

The array passed to vm_pageout_flush, and constructed in a middle-out fashion, can never use array element zero. Shrink the array by one, and reduce indices by one, to save that bit of stack space. In the vm_object version, make the accounting look more like the pageout version.

Based on an observation by @alc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dougm requested review of this revision.Aug 1 2024, 9:35 PM
dougm created this revision.
This revision is now accepted and ready to land.Aug 1 2024, 11:32 PM
This revision was automatically updated to reflect the committed changes.