summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-08-03 14:53:52 +0000
committerphk <phk@FreeBSD.org>2003-08-03 14:53:52 +0000
commit2b330fbdd32a0654127e7699d6c55e984d45cdde (patch)
treedeaa9a1376145ee215e2d3927ed2727c3e702854 /sys/vm
parent064fa9d0bbc6da4e9bdf0d542d87ff15523859ee (diff)
downloadFreeBSD-src-2b330fbdd32a0654127e7699d6c55e984d45cdde.zip
FreeBSD-src-2b330fbdd32a0654127e7699d6c55e984d45cdde.tar.gz
I accidentally hit undo before committing, fix the resulting off-by-one.
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/swap_pager.c2
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++;
OpenPOWER on IntegriCloud