mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
Preallocate the first swap block to work around a failure with swap starting
at physical block 0. Note that this will show up in pstat -s and swapinfo as space "in use". In reality, the space is simply never made available.
This commit is contained in:
parent
c3cd331e8e
commit
d49456add7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=4768
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)vm_swap.c 8.5 (Berkeley) 2/17/94
|
||||
* $Id: vm_swap.c,v 1.10 1994/10/22 02:41:19 davidg Exp $
|
||||
* $Id: vm_swap.c,v 1.11 1994/10/22 17:53:35 phk Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -404,7 +404,7 @@ swfree(p, index)
|
||||
return (0);
|
||||
}
|
||||
#endif
|
||||
for (dvbase = 0; dvbase < nblks; dvbase += dmmax) {
|
||||
for (dvbase = dmmax; dvbase < nblks; dvbase += dmmax) {
|
||||
blk = nblks - dvbase;
|
||||
|
||||
#ifdef SEQSWAP
|
||||
|
Loading…
Reference in New Issue
Block a user