diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-04-02 13:41:02 +0200 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2006-04-02 13:41:02 +0200 |
commit | 7ec70738097af9dfd25d5f83e9b27a532f462912 (patch) | |
tree | da9b6fbca3b08757fcda5e9284f8fdf0d3cf6dd1 /fs/freevxfs/vxfs_olt.c | |
parent | 2c2111c2bd821d3e7cf5a6a37a112a620fd947a3 (diff) | |
download | kernel-common-7ec70738097af9dfd25d5f83e9b27a532f462912.tar.gz kernel-common-7ec70738097af9dfd25d5f83e9b27a532f462912.tar.bz2 kernel-common-7ec70738097af9dfd25d5f83e9b27a532f462912.zip |
BUG_ON() Conversion in fs/freevxfs/
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/freevxfs/vxfs_olt.c')
-rw-r--r-- | fs/freevxfs/vxfs_olt.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/fs/freevxfs/vxfs_olt.c b/fs/freevxfs/vxfs_olt.c index 76a0708ae978..049500847903 100644 --- a/fs/freevxfs/vxfs_olt.c +++ b/fs/freevxfs/vxfs_olt.c @@ -42,24 +42,21 @@ static inline void vxfs_get_fshead(struct vxfs_oltfshead *fshp, struct vxfs_sb_info *infp) { - if (infp->vsi_fshino) - BUG(); + BUG_ON(infp->vsi_fshino); infp->vsi_fshino = fshp->olt_fsino[0]; } static inline void vxfs_get_ilist(struct vxfs_oltilist *ilistp, struct vxfs_sb_info *infp) { - if (infp->vsi_iext) - BUG(); + BUG_ON(infp->vsi_iext); infp->vsi_iext = ilistp->olt_iext[0]; } static inline u_long vxfs_oblock(struct super_block *sbp, daddr_t block, u_long bsize) { - if (sbp->s_blocksize % bsize) - BUG(); + BUG_ON(sbp->s_blocksize % bsize); return (block * (sbp->s_blocksize / bsize)); } |