Btrfs: drop owner and parentid
Signed-off-by: Chris Mason <chris.mason@oracle.com>
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index efc604e..be9630d 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -157,8 +157,6 @@
struct btrfs_fs_info *info = extent_root->fs_info;
btrfs_set_extent_refs(&extent_item, 1);
- btrfs_set_extent_owner(&extent_item,
- btrfs_header_parentid(btrfs_buffer_header(extent_root->node)));
ins.offset = 1;
ins.flags = 0;
btrfs_set_key_type(&ins, BTRFS_EXTENT_ITEM_KEY);
@@ -457,7 +455,7 @@
*/
int btrfs_alloc_extent(struct btrfs_trans_handle *trans, struct btrfs_root
*root, u64 num_blocks, u64 search_start, u64
- search_end, u64 owner, struct btrfs_key *ins)
+ search_end, struct btrfs_key *ins)
{
int ret;
int pending_ret;
@@ -467,7 +465,6 @@
struct btrfs_extent_item extent_item;
btrfs_set_extent_refs(&extent_item, 1);
- btrfs_set_extent_owner(&extent_item, owner);
if (root == extent_root) {
BUG_ON(extent_root->fs_info->current_insert.offset == 0);
@@ -510,8 +507,7 @@
int ret;
struct buffer_head *buf;
- ret = btrfs_alloc_extent(trans, root, 1, 0, (unsigned long)-1,
- btrfs_header_parentid(btrfs_buffer_header(root->node)), &ins);
+ ret = btrfs_alloc_extent(trans, root, 1, 0, (unsigned long)-1, &ins);
if (ret) {
BUG();
return NULL;