提交 c5d3237c 编写于 作者: E Eric Sesterhenn 提交者: Adrian Bunk

BUG_ON() Conversion in fs/coda/

this changes if() BUG(); constructs to BUG_ON() which is
cleaner, contains unlikely() and can better optimized away.
Signed-off-by: NEric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: NAdrian Bunk <bunk@stusta.de>
上级 88bcd512
...@@ -51,7 +51,7 @@ void coda_cache_clear_all(struct super_block *sb) ...@@ -51,7 +51,7 @@ void coda_cache_clear_all(struct super_block *sb)
struct coda_sb_info *sbi; struct coda_sb_info *sbi;
sbi = coda_sbp(sb); sbi = coda_sbp(sb);
if (!sbi) BUG(); BUG_ON(!sbi);
atomic_inc(&permission_epoch); atomic_inc(&permission_epoch);
} }
......
...@@ -120,8 +120,7 @@ void coda_replace_fid(struct inode *inode, struct CodaFid *oldfid, ...@@ -120,8 +120,7 @@ void coda_replace_fid(struct inode *inode, struct CodaFid *oldfid,
cii = ITOC(inode); cii = ITOC(inode);
if (!coda_fideq(&cii->c_fid, oldfid)) BUG_ON(!coda_fideq(&cii->c_fid, oldfid));
BUG();
/* replace fid and rehash inode */ /* replace fid and rehash inode */
/* XXX we probably need to hold some lock here! */ /* XXX we probably need to hold some lock here! */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册