Page MenuHomeFreeBSD

vm_swapout: Remove a special case from vm_swapout_map_deactivate_pages()
ClosedPublic

Authored by markj on Mar 29 2026, 7:45 AM.
Tags
None
Referenced Files
F162636416: D56140.diff
Wed, Jul 15, 7:15 AM
F162636415: D56140.diff
Wed, Jul 15, 7:15 AM
Unknown Object (File)
Mon, Jul 13, 1:13 PM
Unknown Object (File)
Mon, Jul 13, 2:57 AM
Unknown Object (File)
Sun, Jul 12, 1:31 AM
Unknown Object (File)
Mon, Jul 6, 7:44 AM
Unknown Object (File)
Sun, Jul 5, 10:24 PM
Unknown Object (File)
Sun, Jul 5, 5:22 PM
Subscribers

Details

Summary

John points out that this probably should have been removed in commit
472888018ce, which removed a special case where we'd set desired=0 if
the target process has P_INMEM clear. It's not obvious to me that the
desired=0 case can't arise by setting an RSS limit to 0, but I'm not
sure why we'd try to go the extra mile in that case anyway.

Reported by: jhb
Fixes: 472888018ce1 ("proc: Remove kernel stack swapping support, part 6")

Diff Detail

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