diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-03-24 12:42:13 -0500 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2006-03-24 12:42:13 -0500 |
commit | c5d3237c2424c4a3cf69d33abc1f229943468367 (patch) | |
tree | 5bd2cfc657b48cfc9ca014586d33704fa643475b /fs/coda/cnode.c | |
parent | 88bcd51262ed45212d1b3a65abbac46eaf36bfeb (diff) |
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>
Diffstat (limited to 'fs/coda/cnode.c')
-rw-r--r-- | fs/coda/cnode.c | 3 |
1 files changed, 1 insertions, 2 deletions
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! */ |