Skip to contentSkip to conversation

Staging: lustre: obd_cksum.h: Remove unused cksum_types_supported_server

PATCH New Shraddha Barke 2 participants 2 messages Nov 7, 2015 – Nov 9, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: lustre: obd_cksum.h: Remove unused cksum_types_supported_server

cksum_types_supported_server is defined in header file but not used anywhere. Hence remove it.

---
 drivers/staging/lustre/lustre/include/obd_cksum.h | 23 -----------------------
 1 file changed, 23 deletions(-)
drivers/staging/lustre/lustre/include/obd_cksum.h +0 -23
index a0099d7..01db604 100644
@@ -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.
  *
Signature · 1 line
2.1.4
#1 lore raw

PATCH 1/1 Staging: lustre: obd_cksum.h: Remove unused cksum_types_supported_server

Quoted 5 lines

From: lustre-devel [mailto:lustre-devel-bounces at lists.lustre.org] On Behalf Of Shraddha Barke
Sent: Saturday, November 07, 2015 12:47 AM
To: Greg Kroah-Hartman; lustre-devel at lists.lustre.org
Subject: [lustre-devel] [PATCH] Staging: lustre: obd_cksum.h: Remove unused cksum_types_supported_server

Quoted 7 lines

cksum_types_supported_server is defined in header file but not used anywhere. Hence remove it.

---
drivers/staging/lustre/lustre/include/obd_cksum.h | 23 -----------------------

1 file changed, 23 deletions(-)

Server side left that is safe to remove.

drivers/staging/lustre/lustre/include/obd_cksum.h +0 -23
index a0099d7..01db604 100644
@@ -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.
  *
Signature · 6 lines
2.1.4

_______________________________________________
lustre-devel mailing list
lustre-devel at lists.lustre.org
http://lists.lustre.org/listinfo.cgi/lustre-devel-lustre.org