summaryrefslogtreecommitdiffstats
path: root/sys/dev/md/md.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2011-01-19 15:43:54 +0000
committeralc <alc@FreeBSD.org>2011-01-19 15:43:54 +0000
commit6614c76cb4621397cf1ad890b3dddc9a409ee534 (patch)
treefd4292c24f0417175de716de2c7cfe1c4bb8647f /sys/dev/md/md.c
parent71201deeff9b267a7d46889986c7386de40c4a4b (diff)
downloadFreeBSD-src-6614c76cb4621397cf1ad890b3dddc9a409ee534.zip
FreeBSD-src-6614c76cb4621397cf1ad890b3dddc9a409ee534.tar.gz
There is no point in calling vm_object_set_writeable_dirty() on an object
that is definitively known to be swap backed since its only effects are on vnode-backed objects. Reviewed by: kib
Diffstat (limited to 'sys/dev/md/md.c')
-rw-r--r--sys/dev/md/md.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c
index ccd9039..32ef390 100644
--- a/sys/dev/md/md.c
+++ b/sys/dev/md/md.c
@@ -684,7 +684,6 @@ printf("wire_count %d busy %d flags %x hold_count %d act_count %d queue %d valid
#endif
}
vm_object_pip_subtract(sc->object, 1);
- vm_object_set_writeable_dirty(sc->object);
VM_OBJECT_UNLOCK(sc->object);
return (rv != VM_PAGER_ERROR ? 0 : ENOSPC);
}
OpenPOWER on IntegriCloud