Skip to content

Commit

Permalink
[GFS2] Use BUG_ON() rather then if (...) BUG();
Browse files Browse the repository at this point in the history
This issue was raised by:
Eric Sesterhenn <snakebyte@gmx.de>

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
  • Loading branch information
Steven Whitehouse committed Feb 27, 2006
1 parent d92a8d4 commit 3a8fe9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/gfs2/lm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down

0 comments on commit 3a8fe9b

Please sign in to comment.