Skip to content

Commit

Permalink
[GFS2] Move BUG() back into the header file
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Steven Whitehouse committed Apr 21, 2006
1 parent 1dde2db commit 1e09ae5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion fs/gfs2/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

/**
Expand Down
1 change: 1 addition & 0 deletions fs/gfs2/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ void gfs2_assert_i(struct gfs2_sbd *sdp);
do { \
if (unlikely(!(assertion))) { \
gfs2_assert_i(sdp); \
BUG(); \
} \
} while (0)

Expand Down

0 comments on commit 1e09ae5

Please sign in to comment.