aboutsummaryrefslogtreecommitdiffstats
path: root/fs/reiserfs/stree.c
diff options
context:
space:
mode:
authorEric Sesterhenn <snakebyte@gmx.de>2006-10-03 17:36:38 -0400
committerAdrian Bunk <bunk@stusta.de>2006-10-03 17:36:38 -0400
commit14a61442c2203d2a49f2f954bfa9259c0ddac1aa (patch)
treec146effc3dbaa41dd6fdd01e6f3f8fcdd63ad705 /fs/reiserfs/stree.c
parent8d8f3cbe777e014123bfa63f2cebd6eb29032225 (diff)
BUG_ON conversion for fs/reiserfs
This patch converts several if () BUG(); construct to BUG_ON(); which occupies less space, uses unlikely and is safer when BUG() is disabled. S_ISREG() has no side effects, so the conversion is safe. Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de> Signed-off-by: Adrian Bunk <bunk@stusta.de>
Diffstat (limited to 'fs/reiserfs/stree.c')
-rw-r--r--fs/reiserfs/stree.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/reiserfs/stree.c b/fs/reiserfs/stree.c
index 8b9b13127136..5240abe1a709 100644
--- a/fs/reiserfs/stree.c
+++ b/fs/reiserfs/stree.c
@@ -1476,9 +1476,7 @@ static int maybe_indirect_to_direct(struct reiserfs_transaction_handle *th,
1476 int n_block_size = p_s_sb->s_blocksize; 1476 int n_block_size = p_s_sb->s_blocksize;
1477 int cut_bytes; 1477 int cut_bytes;
1478 BUG_ON(!th->t_trans_id); 1478 BUG_ON(!th->t_trans_id);
1479 1479 BUG_ON(n_new_file_size != p_s_inode->i_size);
1480 if (n_new_file_size != p_s_inode->i_size)
1481 BUG();
1482 1480
1483 /* the page being sent in could be NULL if there was an i/o error 1481 /* the page being sent in could be NULL if there was an i/o error
1484 ** reading in the last block. The user will hit problems trying to 1482 ** reading in the last block. The user will hit problems trying to