Cleanup - move a warning so it doesn't spam the screen so much, cleanup
authorMatthew Dillon <dillon@dragonflybsd.org>
Tue, 8 Jul 2008 03:34:27 +0000 (03:34 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Tue, 8 Jul 2008 03:34:27 +0000 (03:34 +0000)
some syntax.

sys/kern/vfs_bio.c
sys/kern/vfs_mount.c

index 8f2398b..5435a9c 100644 (file)
@@ -12,7 +12,7 @@
  *             John S. Dyson.
  *
  * $FreeBSD: src/sys/kern/vfs_bio.c,v 1.242.2.20 2003/05/28 18:38:10 alc Exp $
- * $DragonFly: src/sys/kern/vfs_bio.c,v 1.110 2008/07/07 17:31:07 dillon Exp $
+ * $DragonFly: src/sys/kern/vfs_bio.c,v 1.111 2008/07/08 03:34:27 dillon Exp $
  */
 
 /*
@@ -3719,10 +3719,11 @@ bio_page_alloc(vm_object_t obj, vm_pindex_t pg, int deficit)
        p = vm_page_alloc(obj, pg, VM_ALLOC_NORMAL | VM_ALLOC_SYSTEM |
                                   VM_ALLOC_INTERRUPT);
        if (p) {
-               kprintf("bio_page_alloc: WARNING emergency page "
-                       "allocation\n");
-               if (vm_page_count_severe())
+               if (vm_page_count_severe()) {
+                       kprintf("bio_page_alloc: WARNING emergency page "
+                               "allocation\n");
                        vm_wait(hz / 20);
+               }
        } else {
                kprintf("bio_page_alloc: WARNING emergency page "
                        "allocation failed\n");
index a1d08ad..f67f991 100644 (file)
@@ -67,7 +67,7 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
- * $DragonFly: src/sys/kern/vfs_mount.c,v 1.34 2008/05/18 21:47:02 dillon Exp $
+ * $DragonFly: src/sys/kern/vfs_mount.c,v 1.35 2008/07/08 03:34:27 dillon Exp $
  */
 
 /*
@@ -321,7 +321,7 @@ vfs_getvfs(fsid_t *fsid)
                if (mp->mnt_stat.f_fsid.val[0] == fsid->val[0] &&
                    mp->mnt_stat.f_fsid.val[1] == fsid->val[1]) {
                        break;
-           }
+               }
        }
        lwkt_reltoken(&ilock);
        return (mp);