btrfs: constify fs_info argument of the metadata size calculation helpers
authorFilipe Manana <fdmanana@suse.com>
Tue, 21 Mar 2023 11:13:53 +0000 (11:13 +0000)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Apr 2023 16:01:19 +0000 (18:01 +0200)
commitd1085c9c52855d307662f1a742e27787a732a6f1
tree7d34b31f06e3084aa3e695c0421f21e55f8fbbd7
parent007145ff644cc9a2b2b0c3c88ba68824274fcb12
btrfs: constify fs_info argument of the metadata size calculation helpers

The fs_info argument of the helpers btrfs_calc_insert_metadata_size() and
btrfs_calc_metadata_size() is not modified so it can be const. This will
also allow a new helper function in one of the next patches to have its
fs_info argument as const.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/fs.h