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
This commit is contained in:
Alan Cox 2011-01-19 15:43:54 +00:00
parent e225428f27
commit 18a22f96e0

View File

@ -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);
}