summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2003-05-16 07:28:27 +0000
committeralc <alc@FreeBSD.org>2003-05-16 07:28:27 +0000
commit760e456c35438e4597bf29a953e847e1551a8a35 (patch)
treea069985c564808ceba64a50e6463da0f32606d02 /sys
parent99b4e6770958a656505107a902c778991b4912d7 (diff)
downloadFreeBSD-src-760e456c35438e4597bf29a953e847e1551a8a35.zip
FreeBSD-src-760e456c35438e4597bf29a953e847e1551a8a35.tar.gz
Use vm_object_deallocate(), not vm_pager_deallocate(), to destroy a
vm object. (vm_pager_deallocate() does not, in fact, destroy a vm object.) Approved by: re (scottl) Reviewed by: phk
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/md/md.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c
index a3f4f92..7071a3e 100644
--- a/sys/dev/md/md.c
+++ b/sys/dev/md/md.c
@@ -932,7 +932,7 @@ mddestroy(struct md_s *sc, struct thread *td)
if (sc->cred != NULL)
crfree(sc->cred);
if (sc->object != NULL) {
- vm_pager_deallocate(sc->object);
+ vm_object_deallocate(sc->object);
}
if (sc->indir)
destroy_indir(sc, sc->indir);
@@ -990,7 +990,7 @@ mdcreate_swap(struct md_ioctl *mdio, struct thread *td)
sc->flags = mdio->md_options & MD_FORCE;
if (mdio->md_options & MD_RESERVE) {
if (swap_pager_reserve(sc->object, 0, sc->nsect) < 0) {
- vm_pager_deallocate(sc->object);
+ vm_object_deallocate(sc->object);
sc->object = NULL;
mddestroy(sc, td);
return (EDOM);
OpenPOWER on IntegriCloud