I accidentally hit undo before committing, fix the resulting off-by-one.
This commit is contained in:
parent
86e2f1f1ea
commit
5ff0108d21
@ -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++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user