]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/reiserfs/ibalance.c
reiserfs: rework reiserfs_panic
[karo-tx-linux.git] / fs / reiserfs / ibalance.c
index 6c5a726fd34bf8920da792af32563bc6a47bbc81..063b5514fe299e40874c2753523783596b2a26a4 100644 (file)
@@ -2,7 +2,6 @@
  * Copyright 2000 by Hans Reiser, licensing governed by reiserfs/README
  */
 
-#include <linux/config.h>
 #include <asm/uaccess.h>
 #include <linux/string.h>
 #include <linux/time.h>
@@ -106,8 +105,8 @@ static void internal_define_dest_src_infos(int shift_mode,
                break;
 
        default:
-               reiserfs_panic(tb->tb_sb,
-                              "internal_define_dest_src_infos: shift type is unknown (%d)",
+               reiserfs_panic(tb->tb_sb, "ibalance-1",
+                              "shift type is unknown (%d)",
                               shift_mode);
        }
 }
@@ -703,8 +702,8 @@ static void balance_internal_when_delete(struct tree_balance *tb,
 
                return;
        }
-       reiserfs_panic(tb->tb_sb,
-                      "balance_internal_when_delete: unexpected tb->lnum[%d]==%d or tb->rnum[%d]==%d",
+       reiserfs_panic(tb->tb_sb, "ibalance-2",
+                      "unexpected tb->lnum[%d]==%d or tb->rnum[%d]==%d",
                       h, tb->lnum[h], h, tb->rnum[h]);
 }
 
@@ -941,8 +940,8 @@ int balance_internal(struct tree_balance *tb,       /* tree_balance structure
                struct block_head *blkh;
 
                if (tb->blknum[h] != 1)
-                       reiserfs_panic(NULL,
-                                      "balance_internal: One new node required for creating the new root");
+                       reiserfs_panic(NULL, "ibalance-3", "One new node "
+                                      "required for creating the new root");
                /* S[h] = empty buffer from the list FEB. */
                tbSh = get_FEB(tb);
                blkh = B_BLK_HEAD(tbSh);