aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent-tree.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-04-18 16:15:28 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2007-04-18 16:15:28 -0400
commita429e51371eee3c989160c003ee40bc3947c6a76 (patch)
tree863b55de8823be579264260a51407cd90aac103d /fs/btrfs/extent-tree.c
parent70b2befd0c8a4064715d8b340270650cc9d15af8 (diff)
Btrfs: working file_write, reorganized key flags
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r--fs/btrfs/extent-tree.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index 2cee9df001f6..cb04a70eb7e8 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -35,8 +35,10 @@ int btrfs_inc_extent_ref(struct btrfs_trans_handle *trans,
35 key.offset = num_blocks; 35 key.offset = num_blocks;
36 ret = btrfs_search_slot(trans, root->fs_info->extent_root, &key, path, 36 ret = btrfs_search_slot(trans, root->fs_info->extent_root, &key, path,
37 0, 1); 37 0, 1);
38 if (ret != 0) 38 if (ret != 0) {
39printk("can't find block %Lu %Lu\n", blocknr, num_blocks);
39 BUG(); 40 BUG();
41 }
40 BUG_ON(ret != 0); 42 BUG_ON(ret != 0);
41 l = btrfs_buffer_leaf(path->nodes[0]); 43 l = btrfs_buffer_leaf(path->nodes[0]);
42 item = btrfs_item_ptr(l, path->slots[0], struct btrfs_extent_item); 44 item = btrfs_item_ptr(l, path->slots[0], struct btrfs_extent_item);