]> err.no Git - linux-2.6/commitdiff
ocfs2: Change mlog_bug_on to BUG_ON in ocfs2_lockid.h
authorJoel Becker <joel.becker@oracle.com>
Wed, 5 Mar 2008 00:09:39 +0000 (16:09 -0800)
committerMark Fasheh <mfasheh@suse.com>
Fri, 18 Apr 2008 15:56:07 +0000 (08:56 -0700)
The masklog code is in the o2cb stack, but ocfs2_lockid.h now needs to
be included by the user stack.  The BUG() in ocfs2_lock_type_string()
does not need masklog support, so change it to a regular BUG_ON().

Signed-off-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
fs/ocfs2/ocfs2_lockid.h

index 86f3e3799c2b00d91f5c456792b3c73ed791be51..82c200f7a8f1e327b34b065770c6758892ea70ba 100644 (file)
@@ -100,7 +100,7 @@ static char *ocfs2_lock_type_strings[] = {
 static inline const char *ocfs2_lock_type_string(enum ocfs2_lock_type type)
 {
 #ifdef __KERNEL__
-       mlog_bug_on_msg(type >= OCFS2_NUM_LOCK_TYPES, "%d\n", type);
+       BUG_ON(type >= OCFS2_NUM_LOCK_TYPES);
 #endif
        return ocfs2_lock_type_strings[type];
 }