btrfs: advertise which crc32c implementation is being used at module load
Since several architectures support hardware-accelerated crc32c calculation, it would be nice to confirm that btrfs is actually using it. We can see an elevated use count for the module, but it doesn't actually show who the users are. This patch simply prints the name of the driver after successfully initializing the shash. Signed-off-by: Jeff Mahoney <jeffm@suse.com> [ added a helper and used in module load-time message ] Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
committed by
David Sterba
parent
e06cd3dd7c
commit
5f9e1059d9
@ -2303,7 +2303,7 @@ static void btrfs_interface_exit(void)
|
||||
|
||||
static void btrfs_print_mod_info(void)
|
||||
{
|
||||
printk(KERN_INFO "Btrfs loaded"
|
||||
printk(KERN_INFO "Btrfs loaded, crc32c=%s"
|
||||
#ifdef CONFIG_BTRFS_DEBUG
|
||||
", debug=on"
|
||||
#endif
|
||||
@ -2313,7 +2313,8 @@ static void btrfs_print_mod_info(void)
|
||||
#ifdef CONFIG_BTRFS_FS_CHECK_INTEGRITY
|
||||
", integrity-checker=on"
|
||||
#endif
|
||||
"\n");
|
||||
"\n",
|
||||
btrfs_crc32c_impl());
|
||||
}
|
||||
|
||||
static int btrfs_run_sanity_tests(void)
|
||||
|
Reference in New Issue
Block a user