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)
Dec 16 2024, 12:16 PM
Unknown Object (File)
Nov 16 2024, 6:54 PM
Unknown Object (File)
Nov 16 2024, 6:34 PM
Unknown Object (File)
Nov 16 2024, 5:38 PM
Unknown Object (File)
Nov 16 2024, 3:48 PM
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
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.