summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_mmap.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2003-11-09 05:25:35 +0000
committeralc <alc@FreeBSD.org>2003-11-09 05:25:35 +0000
commit269cf5aa09e2841892619641efd73d79b0c7503a (patch)
treebd200432449621c47dc3d9215eac5e23df813e31 /sys/vm/vm_mmap.c
parent3f532e652b08331243d297085d4f13318e94f586 (diff)
downloadFreeBSD-src-269cf5aa09e2841892619641efd73d79b0c7503a.zip
FreeBSD-src-269cf5aa09e2841892619641efd73d79b0c7503a.tar.gz
- Rename vm_map_clean() to vm_map_sync(). This better reflects the fact
that msync(2) is its only caller. - Migrate the parts of the old vm_map_clean() that examined the internals of a vm object to a new function vm_object_sync() that is implemented in vm_object.c. At the same, introduce the necessary vm object locking so that vm_map_sync() and vm_object_sync() can be called without Giant. Reviewed by: tegge
Diffstat (limited to 'sys/vm/vm_mmap.c')
-rw-r--r--sys/vm/vm_mmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_mmap.c b/sys/vm/vm_mmap.c
index a7dfc0d..158a443 100644
--- a/sys/vm/vm_mmap.c
+++ b/sys/vm/vm_mmap.c
@@ -574,7 +574,7 @@ msync(td, uap)
/*
* Clean the pages and interpret the return value.
*/
- rv = vm_map_clean(map, addr, addr + size, (flags & MS_ASYNC) == 0,
+ rv = vm_map_sync(map, addr, addr + size, (flags & MS_ASYNC) == 0,
(flags & MS_INVALIDATE) != 0);
done2:
OpenPOWER on IntegriCloud