diff options
author | Jeff Mahoney <jeffm@suse.com> | 2016-06-22 18:54:24 -0400 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-12-06 10:06:59 -0500 |
commit | 2ff7e61e0d30ff166a2ae94575526bffe11fd1a8 (patch) | |
tree | a2b8aba1d10c010cc247f3e0866dcbd627e852f3 /fs/btrfs/uuid-tree.c | |
parent | afdb571890615059ed4f0625209b379aff6cb08d (diff) |
btrfs: take an fs_info directly when the root is not used otherwise
There are loads of functions in btrfs that accept a root parameter
but only use it to obtain an fs_info pointer. Let's convert those to
just accept an fs_info pointer directly.
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/uuid-tree.c')
-rw-r--r-- | fs/btrfs/uuid-tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/uuid-tree.c b/fs/btrfs/uuid-tree.c index 4464e80bb5ef..0a211d4ce8e0 100644 --- a/fs/btrfs/uuid-tree.c +++ b/fs/btrfs/uuid-tree.c | |||
@@ -133,7 +133,7 @@ int btrfs_uuid_tree_add(struct btrfs_trans_handle *trans, | |||
133 | * An item with that type already exists. | 133 | * An item with that type already exists. |
134 | * Extend the item and store the new subid at the end. | 134 | * Extend the item and store the new subid at the end. |
135 | */ | 135 | */ |
136 | btrfs_extend_item(uuid_root, path, sizeof(subid_le)); | 136 | btrfs_extend_item(fs_info, path, sizeof(subid_le)); |
137 | eb = path->nodes[0]; | 137 | eb = path->nodes[0]; |
138 | slot = path->slots[0]; | 138 | slot = path->slots[0]; |
139 | offset = btrfs_item_ptr_offset(eb, slot); | 139 | offset = btrfs_item_ptr_offset(eb, slot); |
@@ -231,7 +231,7 @@ int btrfs_uuid_tree_rem(struct btrfs_trans_handle *trans, | |||
231 | move_src = offset + sizeof(subid); | 231 | move_src = offset + sizeof(subid); |
232 | move_len = item_size - (move_src - btrfs_item_ptr_offset(eb, slot)); | 232 | move_len = item_size - (move_src - btrfs_item_ptr_offset(eb, slot)); |
233 | memmove_extent_buffer(eb, move_dst, move_src, move_len); | 233 | memmove_extent_buffer(eb, move_dst, move_src, move_len); |
234 | btrfs_truncate_item(uuid_root, path, item_size - sizeof(subid), 1); | 234 | btrfs_truncate_item(fs_info, path, item_size - sizeof(subid), 1); |
235 | 235 | ||
236 | out: | 236 | out: |
237 | btrfs_free_path(path); | 237 | btrfs_free_path(path); |