]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit45da6a3b1c206c0944574eac3392d244df7cd960
treef23ae20ffd41ac1405e51e75b25e4e19de580179
parent214a77d7e1afe25eb4344ec4194976ab619b1dba
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