summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_object.c
diff options
context:
space:
mode:
authoriedowse <iedowse@FreeBSD.org>2002-06-26 20:32:51 +0000
committeriedowse <iedowse@FreeBSD.org>2002-06-26 20:32:51 +0000
commite62ef89fc1df8d45376a9512206833cdc638641e (patch)
treeaeaaa6de77668fab79f17e2b343adbadf9d306a2 /sys/vm/vm_object.c
parentc3868afc98f44fd1ff3f32ca2a92e673adb92ab9 (diff)
downloadFreeBSD-src-e62ef89fc1df8d45376a9512206833cdc638641e.zip
FreeBSD-src-e62ef89fc1df8d45376a9512206833cdc638641e.tar.gz
Avoid using the 64-bit vm_pindex_t in a few places where 64-bit
types are not required, as the overhead is unnecessary: o In the i386 pmap_protect(), `sindex' and `eindex' represent page indices within the 32-bit virtual address space. o In swp_pager_meta_build() and swp_pager_meta_ctl(), use a temporary variable to store the low few bits of a vm_pindex_t that gets used as an array index. o vm_uiomove() uses `osize' and `idx' for page offsets within a map entry. o In vm_object_split(), `idx' is a page offset within a map entry.
Diffstat (limited to 'sys/vm/vm_object.c')
-rw-r--r--sys/vm/vm_object.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c
index 584854d..f86a653 100644
--- a/sys/vm/vm_object.c
+++ b/sys/vm/vm_object.c
@@ -1208,8 +1208,8 @@ vm_object_split(vm_map_entry_t entry)
vm_page_t m;
vm_object_t orig_object, new_object, source;
vm_offset_t s, e;
- vm_pindex_t offidxstart, offidxend, idx;
- vm_size_t size;
+ vm_pindex_t offidxstart, offidxend;
+ vm_size_t idx, size;
vm_ooffset_t offset;
GIANT_REQUIRED;
OpenPOWER on IntegriCloud