浏览代码

[GFS2] Use BUG_ON() rather then if (...) BUG();

This issue was raised by:
Eric Sesterhenn <snakebyte@gmx.de>

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Steven Whitehouse 19 年之前
父节点
当前提交
3a8fe9be6c
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      fs/gfs2/lm.c

+ 2 - 2
fs/gfs2/lm.c

@@ -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");