btrfs: add a btrfs_csum_type_size helper
authorJosef Bacik <josef@toxicpanda.com>
Sat, 29 Apr 2023 20:07:20 +0000 (16:07 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Jun 2023 11:59:25 +0000 (13:59 +0200)
commitb3cbfb0dd4a80c359701280f6acfa37131d8ee8b
tree6754b594fb8cd77c818f57fb913beff8e97b71cd
parenta95b7f93602e41f680096106935a76667a8763f1
btrfs: add a btrfs_csum_type_size helper

This is needed in btrfs-progs for the tools that convert the checksum
types for file systems and a few other things.  We don't have it in the
kernel as we just want to get the size for the super blocks type.
However I don't want to have to manually add this every time we sync
ctree.c into btrfs-progs, so add the helper in the kernel with a note so
it doesn't get removed by a later cleanup.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.c
fs/btrfs/ctree.h