]> 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 d2b25e1ba6e9739c5bd49b58945d50a7956fb74d..5240abe1a709df1411785d61a66cc64d28d8abf4 100644 (file)
@@ -49,7 +49,6 @@
  * reiserfs_insert_item
  */
 
-#include <linux/config.h>
 #include <linux/time.h>
 #include <linux/string.h>
 #include <linux/pagemap.h>
@@ -1477,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