[GFS2] Move BUG() back into the header file
authorSteven Whitehouse <swhiteho@redhat.com>
Fri, 21 Apr 2006 19:52:46 +0000 (15:52 -0400)
committerSteven Whitehouse <swhiteho@redhat.com>
Fri, 21 Apr 2006 19:52:46 +0000 (15:52 -0400)
In order to make the file and line number reporting work
correctly, this has been moved back into the header file.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/util.c
fs/gfs2/util.h

index 2fc1102..7cd9e25 100644 (file)
@@ -32,7 +32,6 @@ void gfs2_assert_i(struct gfs2_sbd *sdp)
 {
        printk(KERN_EMERG "GFS2: fsid=%s: fatal assertion failed\n",
               sdp->sd_fsname);
-       BUG();
 }
 
 /**
index c9624c3..4532dba 100644 (file)
@@ -30,6 +30,7 @@ void gfs2_assert_i(struct gfs2_sbd *sdp);
 do { \
        if (unlikely(!(assertion))) { \
                gfs2_assert_i(sdp); \
+               BUG(); \
         } \
 } while (0)