aboutsummaryrefslogtreecommitdiffstats
path: root/fs/coda
diff options
context:
space:
mode:
Diffstat (limited to 'fs/coda')
-rw-r--r--fs/coda/cache.c2
-rw-r--r--fs/coda/cnode.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/fs/coda/cache.c b/fs/coda/cache.c
index c607d923350a..5d0527133266 100644
--- a/fs/coda/cache.c
+++ b/fs/coda/cache.c
@@ -51,7 +51,7 @@ void coda_cache_clear_all(struct super_block *sb)
51 struct coda_sb_info *sbi; 51 struct coda_sb_info *sbi;
52 52
53 sbi = coda_sbp(sb); 53 sbi = coda_sbp(sb);
54 if (!sbi) BUG(); 54 BUG_ON(!sbi);
55 55
56 atomic_inc(&permission_epoch); 56 atomic_inc(&permission_epoch);
57} 57}
diff --git a/fs/coda/cnode.c b/fs/coda/cnode.c
index 23aeef5aa814..4c9fecbfa91f 100644
--- a/fs/coda/cnode.c
+++ b/fs/coda/cnode.c
@@ -120,8 +120,7 @@ void coda_replace_fid(struct inode *inode, struct CodaFid *oldfid,
120 120
121 cii = ITOC(inode); 121 cii = ITOC(inode);
122 122
123 if (!coda_fideq(&cii->c_fid, oldfid)) 123 BUG_ON(!coda_fideq(&cii->c_fid, oldfid));
124 BUG();
125 124
126 /* replace fid and rehash inode */ 125 /* replace fid and rehash inode */
127 /* XXX we probably need to hold some lock here! */ 126 /* XXX we probably need to hold some lock here! */