Set license using %license
[platform/upstream/btrfs-progs.git] / ctree.c
diff --git a/ctree.c b/ctree.c
index 20848f0..d1c4192 100644 (file)
--- a/ctree.c
+++ b/ctree.c
@@ -2315,7 +2315,7 @@ split:
 
        ret = 0;
        if (btrfs_leaf_free_space(root->fs_info, leaf) < 0) {
-               btrfs_print_leaf(root, leaf);
+               btrfs_print_leaf(leaf);
                BUG();
        }
        kfree(buf);
@@ -2411,7 +2411,7 @@ int btrfs_truncate_item(struct btrfs_root *root, struct btrfs_path *path,
 
        ret = 0;
        if (btrfs_leaf_free_space(root->fs_info, leaf) < 0) {
-               btrfs_print_leaf(root, leaf);
+               btrfs_print_leaf(leaf);
                BUG();
        }
        return ret;
@@ -2436,7 +2436,7 @@ int btrfs_extend_item(struct btrfs_root *root, struct btrfs_path *path,
        data_end = leaf_data_end(root->fs_info, leaf);
 
        if (btrfs_leaf_free_space(root->fs_info, leaf) < data_size) {
-               btrfs_print_leaf(root, leaf);
+               btrfs_print_leaf(leaf);
                BUG();
        }
        slot = path->slots[0];
@@ -2444,7 +2444,7 @@ int btrfs_extend_item(struct btrfs_root *root, struct btrfs_path *path,
 
        BUG_ON(slot < 0);
        if (slot >= nritems) {
-               btrfs_print_leaf(root, leaf);
+               btrfs_print_leaf(leaf);
                printk("slot %d too large, nritems %d\n", slot, nritems);
                BUG_ON(1);
        }
@@ -2473,7 +2473,7 @@ int btrfs_extend_item(struct btrfs_root *root, struct btrfs_path *path,
 
        ret = 0;
        if (btrfs_leaf_free_space(root->fs_info, leaf) < 0) {
-               btrfs_print_leaf(root, leaf);
+               btrfs_print_leaf(leaf);
                BUG();
        }
        return ret;
@@ -2522,7 +2522,7 @@ int btrfs_insert_empty_items(struct btrfs_trans_handle *trans,
        data_end = leaf_data_end(root->fs_info, leaf);
 
        if (btrfs_leaf_free_space(root->fs_info, leaf) < total_size) {
-               btrfs_print_leaf(root, leaf);
+               btrfs_print_leaf(leaf);
                printk("not enough freespace need %u have %d\n",
                       total_size, btrfs_leaf_free_space(root->fs_info, leaf));
                BUG();
@@ -2535,7 +2535,7 @@ int btrfs_insert_empty_items(struct btrfs_trans_handle *trans,
                unsigned int old_data = btrfs_item_end_nr(leaf, slot);
 
                if (old_data < data_end) {
-                       btrfs_print_leaf(root, leaf);
+                       btrfs_print_leaf(leaf);
                        printk("slot %d old_data %d data_end %d\n",
                               slot, old_data, data_end);
                        BUG_ON(1);
@@ -2583,7 +2583,7 @@ int btrfs_insert_empty_items(struct btrfs_trans_handle *trans,
        }
 
        if (btrfs_leaf_free_space(root->fs_info, leaf) < 0) {
-               btrfs_print_leaf(root, leaf);
+               btrfs_print_leaf(leaf);
                BUG();
        }