• Josef Bacik's avatar
    btrfs: add a btrfs_csum_type_size helper · b3cbfb0d
    Josef Bacik authored
    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: default avatarJosef Bacik <josef@toxicpanda.com>
    Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
    b3cbfb0d
ctree.h 22.4 KB