]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/reiserfs/stree.c
BUG_ON conversion for fs/reiserfs
[linux-2.6-omap-h63xx.git] / fs / reiserfs / stree.c
index 8b9b131271363f2f9b3ef5ed9bcd7fa55a35cab2..5240abe1a709df1411785d61a66cc64d28d8abf4 100644 (file)
@@ -1476,9 +1476,7 @@ static int maybe_indirect_to_direct(struct reiserfs_transaction_handle *th,
        int n_block_size = p_s_sb->s_blocksize;
        int cut_bytes;
        BUG_ON(!th->t_trans_id);
-
-       if (n_new_file_size != p_s_inode->i_size)
-               BUG();
+       BUG_ON(n_new_file_size != p_s_inode->i_size);
 
        /* the page being sent in could be NULL if there was an i/o error
         ** reading in the last block.  The user will hit problems trying to