diff options
Diffstat (limited to 'fs/btrfs/root-tree.c')
-rw-r--r-- | fs/btrfs/root-tree.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/btrfs/root-tree.c b/fs/btrfs/root-tree.c index 668af537a3ea..5bf1ed57f178 100644 --- a/fs/btrfs/root-tree.c +++ b/fs/btrfs/root-tree.c | |||
@@ -29,9 +29,8 @@ | |||
29 | * generation numbers as then we know the root was once mounted with an older | 29 | * generation numbers as then we know the root was once mounted with an older |
30 | * kernel that was not aware of the root item structure change. | 30 | * kernel that was not aware of the root item structure change. |
31 | */ | 31 | */ |
32 | void btrfs_read_root_item(struct btrfs_root *root, | 32 | void btrfs_read_root_item(struct extent_buffer *eb, int slot, |
33 | struct extent_buffer *eb, int slot, | 33 | struct btrfs_root_item *item) |
34 | struct btrfs_root_item *item) | ||
35 | { | 34 | { |
36 | uuid_le uuid; | 35 | uuid_le uuid; |
37 | int len; | 36 | int len; |
@@ -104,7 +103,7 @@ int btrfs_find_last_root(struct btrfs_root *root, u64 objectid, | |||
104 | goto out; | 103 | goto out; |
105 | } | 104 | } |
106 | if (item) | 105 | if (item) |
107 | btrfs_read_root_item(root, l, slot, item); | 106 | btrfs_read_root_item(l, slot, item); |
108 | if (key) | 107 | if (key) |
109 | memcpy(key, &found_key, sizeof(found_key)); | 108 | memcpy(key, &found_key, sizeof(found_key)); |
110 | 109 | ||