diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-08-06 14:13:38 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-08-06 14:13:38 +0000 |
| commit | ef3c5abdbaa90193f86293d1c937b0d4a05a4bee (patch) | |
| tree | ae45393d3a5b4e9c6623baee86faecb2e45a200a /sys/vm | |
| parent | 1d253d7336c74f5dadf8d5eb3b3c49ac1aff3f55 (diff) | |
Notes
Diffstat (limited to 'sys/vm')
| -rw-r--r-- | sys/vm/swap_pager.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c index e6a6273c2988..b450bf70c686 100644 --- a/sys/vm/swap_pager.c +++ b/sys/vm/swap_pager.c @@ -2225,10 +2225,10 @@ swaponvp(td, vp, dev, nblks) sp->sw_blist = blist_create(nblks); /* - * Do not free the first block in order to avoid overwriting + * Do not free the first two block in order to avoid overwriting * any bsd label at the front of the partition */ - blist_free(sp->sw_blist, 1, nblks - 1); + blist_free(sp->sw_blist, 2, nblks - 2); TAILQ_INSERT_TAIL(&swtailq, sp, sw_list); nswapdev++; |
