btrfs: advertise which crc32c implementation is being used at module load
authorJeff Mahoney <jeffm@suse.com>
Wed, 16 Sep 2015 13:34:53 +0000 (15:34 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 6 Jun 2016 12:08:28 +0000 (14:08 +0200)
commit5f9e1059d9347191b271bf7d13bd83db57594d2a
treef23ae20ffd41ac1405e51e75b25e4e19de580179
parente06cd3dd7cea50e87663a88acdfdb7ac1c53a5ca
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>
fs/btrfs/hash.c
fs/btrfs/hash.h
fs/btrfs/super.c