]> 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)
commite37cc910986d0257e0950a98e7e9185460b335a6
treef23ae20ffd41ac1405e51e75b25e4e19de580179
parent1883af9c83adc1ce51e9392fb10d7b1981525a67
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