Commit 8f318311faf57481452895448e6ffaec7c38a146

Authored by Joel Becker
Committed by Mark Fasheh
1 parent cf4d8d75d8

ocfs2: Change mlog_bug_on to BUG_ON in ocfs2_lockid.h

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

fs/ocfs2/ocfs2_lockid.h
... ... @@ -100,7 +100,7 @@
100 100 static inline const char *ocfs2_lock_type_string(enum ocfs2_lock_type type)
101 101 {
102 102 #ifdef __KERNEL__
103   - mlog_bug_on_msg(type >= OCFS2_NUM_LOCK_TYPES, "%d\n", type);
  103 + BUG_ON(type >= OCFS2_NUM_LOCK_TYPES);
104 104 #endif
105 105 return ocfs2_lock_type_strings[type];
106 106 }