summaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/sysfile.c
diff options
context:
space:
mode:
authorEric Sesterhenn / snakebyte <snakebyte@gmx.de>2006-01-27 10:32:52 +0100
committerMark Fasheh <mark.fasheh@oracle.com>2006-02-03 13:54:22 -0800
commitebdec83ba46c123fe3bfdcaacf62d0dfe8fe4187 (patch)
treeacd18f3170c1de8295375cadb0a33fa23066524e /fs/ocfs2/sysfile.c
parentb4c7f538508adcde7a0a5162faec0b2ab19b90bd (diff)
downloadlinux-ebdec83ba46c123fe3bfdcaacf62d0dfe8fe4187.tar.gz
linux-ebdec83ba46c123fe3bfdcaacf62d0dfe8fe4187.tar.bz2
linux-ebdec83ba46c123fe3bfdcaacf62d0dfe8fe4187.zip
[PATCH] BUG_ON() Conversion in fs/ocfs2/
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: Mark Fasheh <mark.fasheh@oracle.com>
Diffstat (limited to 'fs/ocfs2/sysfile.c')
-rw-r--r--fs/ocfs2/sysfile.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/ocfs2/sysfile.c b/fs/ocfs2/sysfile.c
index 600a8bc5b541..fc29cb7a437d 100644
--- a/fs/ocfs2/sysfile.c
+++ b/fs/ocfs2/sysfile.c
@@ -77,8 +77,7 @@ struct inode *ocfs2_get_system_file_inode(struct ocfs2_super *osb,
if (arr && ((inode = *arr) != NULL)) {
/* get a ref in addition to the array ref */
inode = igrab(inode);
- if (!inode)
- BUG();
+ BUG_ON(!inode);
return inode;
}
@@ -89,8 +88,7 @@ struct inode *ocfs2_get_system_file_inode(struct ocfs2_super *osb,
/* add one more if putting into array for first time */
if (arr && inode) {
*arr = igrab(inode);
- if (!*arr)
- BUG();
+ BUG_ON(!*arr);
}
return inode;
}