diff options
author | dillon <dillon@FreeBSD.org> | 2000-10-13 16:44:34 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 2000-10-13 16:44:34 +0000 |
commit | b9b696f1abc7fcd1f327c7a003e2f19073711203 (patch) | |
tree | 1e09d9935e87e4fc9f96b2883b562a9a132bbdc1 /sys/vm/swap_pager.c | |
parent | 4c9cb1a066173e802e2de5bccdff3c594437e042 (diff) | |
download | FreeBSD-src-b9b696f1abc7fcd1f327c7a003e2f19073711203.zip FreeBSD-src-b9b696f1abc7fcd1f327c7a003e2f19073711203.tar.gz |
The swap bitmap allocator was not calculating the bitmap size properly
in the face of non-stripe-aligned swap areas. The bug could cause a
panic during boot.
Refuse to configure a swap area that is too large (67 GB or so)
Properly document the power-of-2 requirement for SWB_NPAGES.
The patch is slightly different then the one Tor enclosed in the P.R.,
but accomplishes the same thing.
PR: kern/20273
Submitted by: Tor.Egge@fast.no
Diffstat (limited to 'sys/vm/swap_pager.c')
-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 31b632a..b1f4802 100644 --- a/sys/vm/swap_pager.c +++ b/sys/vm/swap_pager.c @@ -172,7 +172,7 @@ static void waitchainbuf(struct bio *bp, int count, int done); /* * dmmax is in page-sized chunks with the new swap system. It was - * dev-bsized chunks in the old. + * dev-bsized chunks in the old. dmmax is always a power of 2. * * swap_*() routines are externally accessible. swp_*() routines are * internal. |