diff options
author | phk <phk@FreeBSD.org> | 2003-08-03 14:53:52 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-08-03 14:53:52 +0000 |
commit | 2b330fbdd32a0654127e7699d6c55e984d45cdde (patch) | |
tree | deaa9a1376145ee215e2d3927ed2727c3e702854 /sys | |
parent | 064fa9d0bbc6da4e9bdf0d542d87ff15523859ee (diff) | |
download | FreeBSD-src-2b330fbdd32a0654127e7699d6c55e984d45cdde.zip FreeBSD-src-2b330fbdd32a0654127e7699d6c55e984d45cdde.tar.gz |
I accidentally hit undo before committing, fix the resulting off-by-one.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/vm/swap_pager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c index d2189f2..faca864 100644 --- a/sys/vm/swap_pager.c +++ b/sys/vm/swap_pager.c @@ -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++; |