btrfs: Simplify btrfs_insert_root
btrfs_insert_root is just a wrapper for btrfs_insert_item. Just return the error directly. Signed-off-by: Jeff Mahoney <jeffm@suse.com>
This commit is contained in:
parent
cddcd80018
commit
d16cb050e5
@ -116,13 +116,10 @@ out:
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
int btrfs_insert_root(struct btrfs_trans_handle *trans, struct btrfs_root
|
int btrfs_insert_root(struct btrfs_trans_handle *trans, struct btrfs_root *root,
|
||||||
*root, struct btrfs_key *key, struct btrfs_root_item
|
struct btrfs_key *key, struct btrfs_root_item *item)
|
||||||
*item)
|
|
||||||
{
|
{
|
||||||
int ret;
|
return btrfs_insert_item(trans, root, key, item, sizeof(*item));
|
||||||
ret = btrfs_insert_item(trans, root, key, item, sizeof(*item));
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user