aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorJosef Bacik <[email protected]>2022-07-15 19:45:23 +0000
committerDavid Sterba <[email protected]>2022-09-26 10:27:54 +0000
commit723de71d41f50709eaf2eef1b08aa409687a3c97 (patch)
tree3353865eb66ededaa5cd2d1986ae9e8f54c07978 /fs/btrfs/dev-replace.c
parentbtrfs: simplify arguments of btrfs_update_space_info and rename (diff)
downloadkernel-723de71d41f50709eaf2eef1b08aa409687a3c97.tar.gz
kernel-723de71d41f50709eaf2eef1b08aa409687a3c97.zip
btrfs: handle space_info setting of bg in btrfs_add_bg_to_space_info
We previously had the pattern of btrfs_update_space_info(all, the, bg, fields, &space_info); link_block_group(bg); bg->space_info = space_info; Now that we're passing the bg into btrfs_add_bg_to_space_info we can do the linking in that function, transforming this to simply btrfs_add_bg_to_space_info(fs_info, bg); and put the link_block_group() and bg->space_info assignment directly in btrfs_add_bg_to_space_info. Signed-off-by: Josef Bacik <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions