diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-08-03 14:53:52 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-08-03 14:53:52 +0000 |
commit | 5ff0108d214c4d68e2906090a7b8095da8e76c38 (patch) | |
tree | deaa9a1376145ee215e2d3927ed2727c3e702854 /sys | |
parent | 86e2f1f1ea3c05063ac161f2fe12bd6b078e42d4 (diff) | |
download | src-5ff0108d214c4d68e2906090a7b8095da8e76c38.tar.gz src-5ff0108d214c4d68e2906090a7b8095da8e76c38.zip |
I accidentally hit undo before committing, fix the resulting off-by-one.
Notes
Notes:
svn path=/head/; revision=118392
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 d2189f2a6587..faca86477b42 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++; |