minor formatting and comment changes; removed some old #if 0'd code.
[unix-history] / sys / kern / vfs__bio.c
index 68de769..b26af6f 100644 (file)
@@ -45,7 +45,7 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
  * 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"
  */
 
 #include "param.h"
@@ -593,6 +593,10 @@ biowait(register struct buf *bp)
 void
 biodone(register struct buf *bp)
 {
 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)  {
        bp->b_flags |= B_DONE;
 
        if ((bp->b_flags & B_READ) == 0)  {
@@ -625,12 +629,18 @@ biodone(register struct buf *bp)
  *     The variable vfs_update_wakeup allows for internal syncs.
  */
 int vfs_update_wakeup;
  *     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) {
 
 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);
        }
                vfs_update_wakeup = 0;
                sync(curproc, NULL, NULL);
        }