summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Sesterhenn <snakebyte@gmx.de>2006-04-02 13:39:21 +0200
committerAdrian Bunk <bunk@stusta.de>2006-04-02 13:39:21 +0200
commitd6735bfcc998863dab89dacca2aed20932b6bc21 (patch)
tree83d17ec87bb89fb3241c3b117c293a48730467a3
parentb7542f8c7eb40efb967a558c5be90fe5f939c3ef (diff)
downloadop-kernel-dev-d6735bfcc998863dab89dacca2aed20932b6bc21.zip
op-kernel-dev-d6735bfcc998863dab89dacca2aed20932b6bc21.tar.gz
BUG_ON() Conversion in fs/sysv/
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>
-rw-r--r--fs/sysv/dir.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/sysv/dir.c b/fs/sysv/dir.c
index 8c66e92..d707434 100644
--- a/fs/sysv/dir.c
+++ b/fs/sysv/dir.c
@@ -253,8 +253,7 @@ int sysv_delete_entry(struct sysv_dir_entry *de, struct page *page)
lock_page(page);
err = mapping->a_ops->prepare_write(NULL, page, from, to);
- if (err)
- BUG();
+ BUG_ON(err);
de->inode = 0;
err = dir_commit_chunk(page, from, to);
dir_put_page(page);
@@ -353,8 +352,7 @@ void sysv_set_link(struct sysv_dir_entry *de, struct page *page,
lock_page(page);
err = page->mapping->a_ops->prepare_write(NULL, page, from, to);
- if (err)
- BUG();
+ BUG_ON(err);
de->inode = cpu_to_fs16(SYSV_SB(inode->i_sb), inode->i_ino);
err = dir_commit_chunk(page, from, to);
dir_put_page(page);
OpenPOWER on IntegriCloud