]> 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)
commit9d4b0a129a0d081821f21edccad154f8e2a1b747
tree57df28bc1d9da0bcfb834002efa489eb6167d8d7
parent2f12741f81af638dfb682dc2f24e6cbb67a37a2e
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