Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Jul 2015 09:57:35 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r286002 - head/sys/kern
Message-ID:  <201507290957.t6T9vZwo061726@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Wed Jul 29 09:57:34 2015
New Revision: 286002
URL: https://svnweb.freebsd.org/changeset/base/286002

Log:
  Move bufshutdown() out of the #ifdef INVARIANTS block.

Modified:
  head/sys/kern/vfs_bio.c

Modified: head/sys/kern/vfs_bio.c
==============================================================================
--- head/sys/kern/vfs_bio.c	Wed Jul 29 08:12:05 2015	(r286001)
+++ head/sys/kern/vfs_bio.c	Wed Jul 29 09:57:34 2015	(r286002)
@@ -958,6 +958,22 @@ vfs_buf_check_mapped(struct buf *bp)
 	KASSERT(bp->b_data < unmapped_buf || bp->b_data > unmapped_buf +
 	    MAXPHYS, ("b_data + b_offset unmapped %p", bp));
 }
+
+static inline void
+vfs_buf_check_unmapped(struct buf *bp)
+{
+
+	KASSERT(bp->b_data == unmapped_buf,
+	    ("unmapped buf: corrupted b_data %p", bp));
+}
+
+#define	BUF_CHECK_MAPPED(bp) vfs_buf_check_mapped(bp)
+#define	BUF_CHECK_UNMAPPED(bp) vfs_buf_check_unmapped(bp)
+#else
+#define	BUF_CHECK_MAPPED(bp) do {} while (0)
+#define	BUF_CHECK_UNMAPPED(bp) do {} while (0)
+#endif
+
 static int
 isbufbusy(struct buf *bp)
 {
@@ -1087,21 +1103,6 @@ bufshutdown(int show_busybufs)
 	DELAY(100000);		/* wait for console output to finish */
 }
 
-static inline void
-vfs_buf_check_unmapped(struct buf *bp)
-{
-
-	KASSERT(bp->b_data == unmapped_buf,
-	    ("unmapped buf: corrupted b_data %p", bp));
-}
-
-#define	BUF_CHECK_MAPPED(bp) vfs_buf_check_mapped(bp)
-#define	BUF_CHECK_UNMAPPED(bp) vfs_buf_check_unmapped(bp)
-#else
-#define	BUF_CHECK_MAPPED(bp) do {} while (0)
-#define	BUF_CHECK_UNMAPPED(bp) do {} while (0)
-#endif
-
 static void
 bpmap_qenter(struct buf *bp)
 {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201507290957.t6T9vZwo061726>