]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[GFS2] Use BUG_ON() rather then if (...) BUG();
authorSteven Whitehouse <swhiteho@redhat.com>
Mon, 27 Feb 2006 16:00:37 +0000 (11:00 -0500)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 27 Feb 2006 16:00:37 +0000 (11:00 -0500)
This issue was raised by:
Eric Sesterhenn <snakebyte@gmx.de>

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

index cc7442261b2e707b1f6eef65322a62283568f782..f86f11f39738a7c6e83c612386042542edb1412d 100644 (file)
@@ -101,8 +101,8 @@ int gfs2_lm_withdraw(struct gfs2_sbd *sdp, char *fmt, ...)
        va_end(args);
 
        fs_err(sdp, "about to withdraw from the cluster\n");
-       if (sdp->sd_args.ar_debug)
-               BUG();
+       BUG_ON(sdp->sd_args.ar_debug);
+       
 
        fs_err(sdp, "waiting for outstanding I/O\n");