aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2019-10-07 11:11:03 +0200
committerDavid Sterba <dsterba@suse.com>2019-11-18 17:51:43 +0100
commitf7cea56c0fff95bd5a6cd21b9fa299f66193b604 (patch)
treee59752010527d9314d500aec9542f17c98279092 /fs/btrfs/ctree.h
parentbtrfs: add sha256 to checksumming algorithm (diff)
downloadlinux-dev-f7cea56c0fff95bd5a6cd21b9fa299f66193b604.tar.xz
linux-dev-f7cea56c0fff95bd5a6cd21b9fa299f66193b604.zip
btrfs: sysfs: export supported checksums
Export supported checksum algorithms via sysfs in the list of static features: /sys/fs/btrfs/features/supported_checksums Space spearated list of checksum algorithm names. Co-developed-by: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index d5c9fbe32c0c..b17944995e09 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -2163,6 +2163,8 @@ BTRFS_SETGET_STACK_FUNCS(super_uuid_tree_generation, struct btrfs_super_block,
int btrfs_super_csum_size(const struct btrfs_super_block *s);
const char *btrfs_super_csum_name(u16 csum_type);
+size_t __const btrfs_get_num_csums(void);
+
/*
* The leaf data grows from end-to-front in the node.