diff options
author | attilio <attilio@FreeBSD.org> | 2012-06-01 14:57:55 +0000 |
---|---|---|
committer | attilio <attilio@FreeBSD.org> | 2012-06-01 14:57:55 +0000 |
commit | e761e0c4bc4de3f2cec12facd940650a6d91a306 (patch) | |
tree | 77c75013496bd54130eaeb687abfbc306eb3fe0e /sys/vm/vm_page.h | |
parent | ab9d63eba7028355b8088854e562bf4b30634c39 (diff) | |
parent | 93f33aca235863c198489ffb08994a6ca86e897e (diff) | |
download | FreeBSD-src-e761e0c4bc4de3f2cec12facd940650a6d91a306.zip FreeBSD-src-e761e0c4bc4de3f2cec12facd940650a6d91a306.tar.gz |
MFC
Diffstat (limited to 'sys/vm/vm_page.h')
-rw-r--r-- | sys/vm/vm_page.h | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/sys/vm/vm_page.h b/sys/vm/vm_page.h index 91abd53..4bb6034 100644 --- a/sys/vm/vm_page.h +++ b/sys/vm/vm_page.h @@ -310,7 +310,7 @@ struct vnode; extern int vm_page_zero_count; extern vm_page_t vm_page_array; /* First resident page in table */ -extern int vm_page_array_size; /* number of vm_page_t's */ +extern long vm_page_array_size; /* number of vm_page_t's */ extern long first_page; /* first physical page number */ #define VM_PAGE_IS_FREE(m) (((m)->flags & PG_FREE) != 0) @@ -319,19 +319,7 @@ extern long first_page; /* first physical page number */ vm_page_t vm_phys_paddr_to_vm_page(vm_paddr_t pa); -static __inline vm_page_t PHYS_TO_VM_PAGE(vm_paddr_t pa); - -static __inline vm_page_t -PHYS_TO_VM_PAGE(vm_paddr_t pa) -{ -#ifdef VM_PHYSSEG_SPARSE - return (vm_phys_paddr_to_vm_page(pa)); -#elif defined(VM_PHYSSEG_DENSE) - return (&vm_page_array[atop(pa) - first_page]); -#else -#error "Either VM_PHYSSEG_DENSE or VM_PHYSSEG_SPARSE must be defined." -#endif -} +vm_page_t PHYS_TO_VM_PAGE(vm_paddr_t pa); extern struct vpglocks vm_page_queue_lock; @@ -389,6 +377,7 @@ void vm_page_dontneed(vm_page_t); void vm_page_deactivate (vm_page_t); vm_page_t vm_page_find_least(vm_object_t, vm_pindex_t); vm_page_t vm_page_getfake(vm_paddr_t paddr, vm_memattr_t memattr); +void vm_page_initfake(vm_page_t m, vm_paddr_t paddr, vm_memattr_t memattr); int vm_page_insert (vm_page_t, vm_object_t, vm_pindex_t); vm_page_t vm_page_lookup (vm_object_t, vm_pindex_t); vm_page_t vm_page_next(vm_page_t m); |