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: Eric Sesterhenn <snakebyte@gmx.de> Signed-off-by: Adrian Bunk <bunk@stusta.de>
diff --git a/fs/coda/cache.c b/fs/coda/cache.c index c607d92..5d05271 100644 --- a/fs/coda/cache.c +++ b/fs/coda/cache.c
@@ -51,7 +51,7 @@ struct coda_sb_info *sbi; sbi = coda_sbp(sb); - if (!sbi) BUG(); + BUG_ON(!sbi); atomic_inc(&permission_epoch); }
diff --git a/fs/coda/cnode.c b/fs/coda/cnode.c index 23aeef5..4c9fecb 100644 --- a/fs/coda/cnode.c +++ b/fs/coda/cnode.c
@@ -120,8 +120,7 @@ cii = ITOC(inode); - if (!coda_fideq(&cii->c_fid, oldfid)) - BUG(); + BUG_ON(!coda_fideq(&cii->c_fid, oldfid)); /* replace fid and rehash inode */ /* XXX we probably need to hold some lock here! */