diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-04-02 13:39:21 +0200 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2006-04-02 13:39:21 +0200 |
commit | d6735bfcc998863dab89dacca2aed20932b6bc21 (patch) | |
tree | 83d17ec87bb89fb3241c3b117c293a48730467a3 /fs/sysv/dir.c | |
parent | b7542f8c7eb40efb967a558c5be90fe5f939c3ef (diff) | |
download | blackbird-op-linux-d6735bfcc998863dab89dacca2aed20932b6bc21.tar.gz blackbird-op-linux-d6735bfcc998863dab89dacca2aed20932b6bc21.zip |
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>
Diffstat (limited to 'fs/sysv/dir.c')
-rw-r--r-- | fs/sysv/dir.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/sysv/dir.c b/fs/sysv/dir.c index 8c66e9270dd6..d7074341ee87 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); |