[PATCH] BUG_ON() Conversion in fs/ocfs2/
this changes if() BUG(); constructs to BUG_ON() which is cleaner, contains unlikely() and can better optimized away. Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de> Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
This commit is contained in:
committed by
Mark Fasheh
parent
b4c7f53850
commit
ebdec83ba4
@@ -1254,8 +1254,7 @@ static int ocfs2_initialize_super(struct super_block *sb,
|
||||
osb->sb = sb;
|
||||
/* Save off for ocfs2_rw_direct */
|
||||
osb->s_sectsize_bits = blksize_bits(sector_size);
|
||||
if (!osb->s_sectsize_bits)
|
||||
BUG();
|
||||
BUG_ON(!osb->s_sectsize_bits);
|
||||
|
||||
osb->net_response_ids = 0;
|
||||
spin_lock_init(&osb->net_response_lock);
|
||||
|
Reference in New Issue
Block a user