diff options
| author | Peter Wemm <peter@FreeBSD.org> | 1998-05-02 03:02:13 +0000 |
|---|---|---|
| committer | Peter Wemm <peter@FreeBSD.org> | 1998-05-02 03:02:13 +0000 |
| commit | 3c33646725b8ee575936de0117ea70e4986b7d9d (patch) | |
| tree | 0da9cd808b73fa11d5e6a0a8ea5473db93d01e92 | |
| parent | b3a77ee548aebeb9cf3b0f61c3d6f3ca52eac637 (diff) | |
Notes
| -rw-r--r-- | sys/vm/vm_page.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index 982ed69b6ea0..7c3b6f324793 100644 --- a/sys/vm/vm_page.c +++ b/sys/vm/vm_page.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)vm_page.c 7.4 (Berkeley) 5/7/91 - * $Id: vm_page.c,v 1.97 1998/03/16 01:55:55 dyson Exp $ + * $Id: vm_page.c,v 1.98 1998/04/15 17:47:38 bde Exp $ */ /* @@ -1429,11 +1429,12 @@ vm_page_bits(int base, int size) return VM_PAGE_BITS_ALL; size = (size + DEV_BSIZE - 1) & ~(DEV_BSIZE - 1); + base &= PAGE_MASK; if (size > PAGE_SIZE - base) { size = PAGE_SIZE - base; } - base = (base % PAGE_SIZE) / DEV_BSIZE; + base = base / DEV_BSIZE; chunk = vm_page_dev_bsize_chunks[size / DEV_BSIZE]; return (chunk << base) & VM_PAGE_BITS_ALL; } |
