diff options
author | Josef Bacik <josef@toxicpanda.com> | 2020-11-05 10:45:20 -0500 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2020-12-08 15:54:07 +0100 |
commit | 3fbaf25817f7013fad3ccf76279f0bd5719a5205 (patch) | |
tree | f781b57b4ccf79b2f863dd6ca715bc8602f3a33b /fs/btrfs/tree-log.c | |
parent | 5d81230baa9096bd5a7ad40822505b89ca7f9dfe (diff) | |
download | lwn-3fbaf25817f7013fad3ccf76279f0bd5719a5205.tar.gz lwn-3fbaf25817f7013fad3ccf76279f0bd5719a5205.zip |
btrfs: pass the owner_root and level to alloc_extent_buffer
Now that we've plumbed all of the callers to have the owner root and the
level, plumb it down into alloc_extent_buffer().
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/tree-log.c')
-rw-r--r-- | fs/btrfs/tree-log.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c index eb86c632535a..b1f97be57bb3 100644 --- a/fs/btrfs/tree-log.c +++ b/fs/btrfs/tree-log.c @@ -2699,7 +2699,9 @@ static noinline int walk_down_log_tree(struct btrfs_trans_handle *trans, btrfs_node_key_to_cpu(cur, &first_key, path->slots[*level]); blocksize = fs_info->nodesize; - next = btrfs_find_create_tree_block(fs_info, bytenr); + next = btrfs_find_create_tree_block(fs_info, bytenr, + btrfs_header_owner(cur), + *level - 1); if (IS_ERR(next)) return PTR_ERR(next); |