]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Callers of swp_pager_getswapspace get either as many blocks as they
authordougm <dougm@FreeBSD.org>
Sat, 11 May 2019 10:16:43 +0000 (10:16 +0000)
committerdougm <dougm@FreeBSD.org>
Sat, 11 May 2019 10:16:43 +0000 (10:16 +0000)
commit1b3da1aa6d1b9f545b35433b765d495adc87a295
tree034e39fe003fc1bd9aa9a310f108139d71c3655c
parent0ecc670646e7ecfc4c1602ae572995bc0899ce14
Callers of swp_pager_getswapspace get either as many blocks as they
requested, or none, and in the latter case it is up to them to pick a
smaller request to make - which they always do by halving the failed
request. This change to swp_pager_getswapspace leaves the task of
downsizing the request to the function and not its caller. It still
does so by halving the original request.

Approved by: kib (mentor)
Differential Revision: https://reviews.freebsd.org/D20228
sys/vm/swap_pager.c