summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_object.h
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2012-03-19 18:47:34 +0000
committerjhb <jhb@FreeBSD.org>2012-03-19 18:47:34 +0000
commit9628d3dbf8d90a560573b5f82b1e52e3b2eb4605 (patch)
tree241c7fa3e8584990822d1ad78f12a03bb221b953 /sys/vm/vm_object.h
parent2e0db42a5f7e8ff9bb190dd0a5ac5475580cb905 (diff)
downloadFreeBSD-src-9628d3dbf8d90a560573b5f82b1e52e3b2eb4605.zip
FreeBSD-src-9628d3dbf8d90a560573b5f82b1e52e3b2eb4605.tar.gz
Fix madvise(MADV_WILLNEED) to properly handle individual mappings larger
than 4GB. Specifically, the inlined version of 'ptoa' of the the 'int' count of pages overflowed on 64-bit platforms. While here, change vm_object_madvise() to accept two vm_pindex_t parameters (start and end) rather than a (start, count) tuple to match other VM APIs as suggested by alc@.
Diffstat (limited to 'sys/vm/vm_object.h')
-rw-r--r--sys/vm/vm_object.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_object.h b/sys/vm/vm_object.h
index 7f769a5..e6e64f7 100644
--- a/sys/vm/vm_object.h
+++ b/sys/vm/vm_object.h
@@ -225,6 +225,7 @@ void vm_object_destroy (vm_object_t);
void vm_object_terminate (vm_object_t);
void vm_object_set_writeable_dirty (vm_object_t);
void vm_object_init (void);
+void vm_object_madvise(vm_object_t, vm_pindex_t, vm_pindex_t, int);
void vm_object_page_cache(vm_object_t object, vm_pindex_t start,
vm_pindex_t end);
boolean_t vm_object_page_clean(vm_object_t object, vm_ooffset_t start,
@@ -240,7 +241,6 @@ void vm_object_shadow (vm_object_t *, vm_ooffset_t *, vm_size_t);
void vm_object_split(vm_map_entry_t);
boolean_t vm_object_sync(vm_object_t, vm_ooffset_t, vm_size_t, boolean_t,
boolean_t);
-void vm_object_madvise (vm_object_t, vm_pindex_t, int, int);
#endif /* _KERNEL */
#endif /* _VM_OBJECT_ */
OpenPOWER on IntegriCloud