]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Remove swblk_t.
authormarkj <markj@FreeBSD.org>
Mon, 17 Feb 2020 15:11:07 +0000 (15:11 +0000)
committermarkj <markj@FreeBSD.org>
Mon, 17 Feb 2020 15:11:07 +0000 (15:11 +0000)
commit0a959e0bae98419b3ac8411da80e84007b7ac8dd
treea83df9902bf4169daee69c74a5eb9228d6896ea5
parent2f0124a78ff84b54ce79bf4584bdf809b520cada
Remove swblk_t.

It was used only to store the bounds of each swap device.  However,
since swblk_t is a signed 32-bit int and daddr_t is a signed 64-bit
int, swp_pager_isondev() may return an invalid result if swap devices
are repeatedly added and removed and sw_end for a device ends up
becoming a negative number.

Note that the removed comment about maximum swap size still applies.

Reviewed by: jeff, kib
Tested by: pho
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D23666
lib/libkvm/kvm_getswapinfo.c
sys/vm/swap_pager.c
sys/vm/swap_pager.h