]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: simplify arguments of btrfs_update_space_info and rename
authorJosef Bacik <josef@toxicpanda.com>
Fri, 15 Jul 2022 19:45:22 +0000 (15:45 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Sep 2022 10:27:54 +0000 (12:27 +0200)
commit00cfb3b3d3d6baafec6b2bd49e8b2f20f2435da9
tree57df28bc1d9da0bcfb834002efa489eb6167d8d7
parent55e9da8c01da75f6b64c93b2f9ad191bdc1c8404
btrfs: simplify arguments of btrfs_update_space_info and rename

This function has grown a bunch of new arguments, and it just boils down
to passing in all the block group fields as arguments.  Simplify this by
passing in the block group itself and updating the space_info fields
based on the block group fields directly.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/block-group.c
fs/btrfs/space-info.c
fs/btrfs/space-info.h