* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: vfs__bio.c,v 1.14 1993/12/30 05:20:12 davidg Exp $
+ * $Id: vfs__bio.c,v 1.16 1994/03/19 22:19:11 wollman Exp $
*/
#include "param.h"
void
biodone(register struct buf *bp)
{
+#ifndef NOBOUNCE
+ if (bp->b_flags & B_BOUNCE)
+ vm_bounce_free(bp);
+#endif
bp->b_flags |= B_DONE;
if ((bp->b_flags & B_READ) == 0) {
* The variable vfs_update_wakeup allows for internal syncs.
*/
int vfs_update_wakeup;
+#ifndef UPDATE_INTERVAL
+int vfs_update_interval = 30;
+#else
+int vfs_update_interval = UPDATE_INTERVAL;
+#endif
void
vfs_update() {
(void) spl0();
while(1) {
- tsleep((caddr_t)&vfs_update_wakeup, PRIBIO, "update", hz*30);
+ tsleep((caddr_t)&vfs_update_wakeup, PRIBIO, "update",
+ hz * vfs_update_interval);
vfs_update_wakeup = 0;
sync(curproc, NULL, NULL);
}