Skip to content

Commit 5fbf83c

Browse files
Stefan BehrensJosef Bacik
authored andcommitted
Btrfs: delete unused parameter to btrfs_read_root_item()
Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de> Signed-off-by: Josef Bacik <jbacik@fusionio.com>
1 parent ecc7ada commit 5fbf83c

3 files changed

Lines changed: 6 additions & 8 deletions

File tree

‎fs/btrfs/ctree.h‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3359,9 +3359,8 @@ int __must_check btrfs_update_root(struct btrfs_trans_handle *trans,
33593359
struct btrfs_root *root,
33603360
struct btrfs_key *key,
33613361
struct btrfs_root_item *item);
3362-
void btrfs_read_root_item(struct btrfs_root *root,
3363-
struct extent_buffer *eb, int slot,
3364-
struct btrfs_root_item *item);
3362+
void btrfs_read_root_item(struct extent_buffer *eb, int slot,
3363+
struct btrfs_root_item *item);
33653364
int btrfs_find_last_root(struct btrfs_root *root, u64 objectid, struct
33663365
btrfs_root_item *item, struct btrfs_key *key);
33673366
int btrfs_find_dead_roots(struct btrfs_root *root, u64 objectid);

‎fs/btrfs/disk-io.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1481,7 +1481,7 @@ struct btrfs_root *btrfs_read_fs_root_no_radix(struct btrfs_root *tree_root,
14811481
if (ret == 0) {
14821482
l = path->nodes[0];
14831483
slot = path->slots[0];
1484-
btrfs_read_root_item(tree_root, l, slot, &root->root_item);
1484+
btrfs_read_root_item(l, slot, &root->root_item);
14851485
memcpy(&root->root_key, location, sizeof(*location));
14861486
}
14871487
btrfs_free_path(path);

‎fs/btrfs/root-tree.c‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@
2929
* generation numbers as then we know the root was once mounted with an older
3030
* kernel that was not aware of the root item structure change.
3131
*/
32-
void btrfs_read_root_item(struct btrfs_root *root,
33-
struct extent_buffer *eb, int slot,
34-
struct btrfs_root_item *item)
32+
void btrfs_read_root_item(struct extent_buffer *eb, int slot,
33+
struct btrfs_root_item *item)
3534
{
3635
uuid_le uuid;
3736
int len;
@@ -104,7 +103,7 @@ int btrfs_find_last_root(struct btrfs_root *root, u64 objectid,
104103
goto out;
105104
}
106105
if (item)
107-
btrfs_read_root_item(root, l, slot, item);
106+
btrfs_read_root_item(l, slot, item);
108107
if (key)
109108
memcpy(key, &found_key, sizeof(found_key));
110109

0 commit comments

Comments
 (0)