I accidentally hit undo before committing, fix the resulting off-by-one.

This commit is contained in:
Poul-Henning Kamp 2003-08-03 14:53:52 +00:00
parent 86e2f1f1ea
commit 5ff0108d21
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=118392

View File

@ -2569,7 +2569,7 @@ swaponvp(td, vp, dev, nblks)
* Do not free the first block in order to avoid overwriting
* any bsd label at the front of the partition
*/
blist_free(sp->sw_blist, 1, nblks);
blist_free(sp->sw_blist, 1, nblks - 1);
TAILQ_INSERT_TAIL(&swtailq, sp, sw_list);
nswapdev++;