summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/vm_map.c2
-rw-r--r--sys/vm/vm_map.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c
index 9bbe14b..8dc3550 100644
--- a/sys/vm/vm_map.c
+++ b/sys/vm/vm_map.c
@@ -1339,7 +1339,7 @@ vm_map_madvise(
current->object.vm_object,
pindex,
(count << PAGE_SHIFT),
- 0
+ MAP_PREFAULT_MADVISE
);
}
}
diff --git a/sys/vm/vm_map.h b/sys/vm/vm_map.h
index 3776a6e..c9831d5 100644
--- a/sys/vm/vm_map.h
+++ b/sys/vm/vm_map.h
@@ -248,6 +248,7 @@ long vmspace_resident_count(struct vmspace *vmspace);
#define MAP_PREFAULT_PARTIAL 0x0010
#define MAP_DISABLE_SYNCER 0x0020
#define MAP_DISABLE_COREDUMP 0x0100
+#define MAP_PREFAULT_MADVISE 0x0200 /* from (user) madvise request */
/*
* vm_fault option flags
OpenPOWER on IntegriCloud