aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/root-tree.c
diff options
context:
space:
mode:
authorJeff Mahoney <jeffm@suse.com>2011-10-03 23:22:34 -0400
committerDavid Sterba <dsterba@suse.cz>2012-03-21 20:45:31 -0400
commitd16cb050e5b1c3a9d754fed7098eefb8237877d1 (patch)
treef6b4f8cb5d15c28676a6f6416e6c7b6ca0f72a8a /fs/btrfs/root-tree.c
parentcddcd800189bc03745d576f913dc57692c6f439a (diff)
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>
Diffstat (limited to 'fs/btrfs/root-tree.c')
-rw-r--r--fs/btrfs/root-tree.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/fs/btrfs/root-tree.c b/fs/btrfs/root-tree.c
index f4099904565a..1fd93d63707f 100644
--- a/fs/btrfs/root-tree.c
+++ b/fs/btrfs/root-tree.c
@@ -116,13 +116,10 @@ out:
116 return ret; 116 return ret;
117} 117}
118 118
119int btrfs_insert_root(struct btrfs_trans_handle *trans, struct btrfs_root 119int btrfs_insert_root(struct btrfs_trans_handle *trans, struct btrfs_root *root,
120 *root, struct btrfs_key *key, struct btrfs_root_item 120 struct btrfs_key *key, struct btrfs_root_item *item)
121 *item)
122{ 121{
123 int ret; 122 return btrfs_insert_item(trans, root, key, item, sizeof(*item));
124 ret = btrfs_insert_item(trans, root, key, item, sizeof(*item));
125 return ret;
126} 123}
127 124
128/* 125/*