Page MenuHomeFreeBSD

drop swp_pager_getswapspace parameter
ClosedPublic

Authored by dougm on Feb 23 2020, 8:32 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Feb 7, 9:23 PM
Unknown Object (File)
Mon, Feb 2, 9:52 PM
Unknown Object (File)
Sat, Jan 31, 2:06 AM
Unknown Object (File)
Jan 7 2026, 12:35 AM
Unknown Object (File)
Dec 27 2025, 9:57 PM
Unknown Object (File)
Dec 21 2025, 3:00 AM
Unknown Object (File)
Nov 20 2025, 2:57 PM
Unknown Object (File)
Nov 20 2025, 2:54 PM
Subscribers

Details

Summary

The last argument to swp_pager_getswapspace is always 1. Remove that argument.

Diff Detail

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

Event Timeline

markj added inline comments.
sys/vm/swap_pager.c
760 ↗(On Diff #68722)

You might assert that *io_npages >= 1.

This revision is now accepted and ready to land.Feb 23 2020, 9:48 PM