diff options
Diffstat (limited to 'sys/vm/vm_map.c')
-rw-r--r-- | sys/vm/vm_map.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c index bfebc9c..9d4aec7 100644 --- a/sys/vm/vm_map.c +++ b/sys/vm/vm_map.c @@ -61,7 +61,7 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id: vm_map.c,v 1.172 1999/07/11 18:30:31 alc Exp $ + * $Id: vm_map.c,v 1.173 1999/07/21 18:02:27 alc Exp $ */ /* @@ -1050,14 +1050,14 @@ vm_map_madvise(map, start, end, advise) } switch (advise) { - case MADV_NORMAL: - current->object.vm_object->behavior = OBJ_NORMAL; + case MADV_NORMAL: + vm_map_entry_set_behavior(current, MAP_ENTRY_BEHAV_NORMAL); break; - case MADV_SEQUENTIAL: - current->object.vm_object->behavior = OBJ_SEQUENTIAL; + case MADV_SEQUENTIAL: + vm_map_entry_set_behavior(current, MAP_ENTRY_BEHAV_SEQUENTIAL); break; - case MADV_RANDOM: - current->object.vm_object->behavior = OBJ_RANDOM; + case MADV_RANDOM: + vm_map_entry_set_behavior(current, MAP_ENTRY_BEHAV_RANDOM); break; /* * Right now, we could handle DONTNEED and WILLNEED with common code. |