]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
Staging: lustre: obd_cksum.h: Remove unused cksum_types_supported_server
authorShraddha Barke <shraddha.6596@gmail.com>
Sat, 7 Nov 2015 05:46:39 +0000 (11:16 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Nov 2015 16:39:07 +0000 (08:39 -0800)
cksum_types_supported_server is defined in header file but not used
anywhere. Hence remove it.

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Acked-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/include/obd_cksum.h

index a0099d71773a77e1072abe8b10efeabc09c6cb9c..01db604053939c4af563e6da81d8c6e8188ce7f9 100644 (file)
@@ -133,29 +133,6 @@ static inline cksum_type_t cksum_types_supported_client(void)
        return ret;
 }
 
-/* Server uses algos that perform at 50% or better of the Adler */
-static inline cksum_type_t cksum_types_supported_server(void)
-{
-       int          base_speed;
-       cksum_type_t    ret = OBD_CKSUM_ADLER;
-
-       CDEBUG(D_INFO, "Crypto hash speed: crc %d, crc32c %d, adler %d\n",
-              cfs_crypto_hash_speed(cksum_obd2cfs(OBD_CKSUM_CRC32)),
-              cfs_crypto_hash_speed(cksum_obd2cfs(OBD_CKSUM_CRC32C)),
-              cfs_crypto_hash_speed(cksum_obd2cfs(OBD_CKSUM_ADLER)));
-
-       base_speed = cfs_crypto_hash_speed(cksum_obd2cfs(OBD_CKSUM_ADLER)) / 2;
-
-       if (cfs_crypto_hash_speed(cksum_obd2cfs(OBD_CKSUM_CRC32C)) >=
-           base_speed)
-               ret |= OBD_CKSUM_CRC32C;
-       if (cfs_crypto_hash_speed(cksum_obd2cfs(OBD_CKSUM_CRC32)) >=
-           base_speed)
-               ret |= OBD_CKSUM_CRC32;
-
-       return ret;
-}
-
 /* Select the best checksum algorithm among those supplied in the cksum_types
  * input.
  *