nfsd: kill unused macro definition
authorShan Wei <shanwei@cn.fujitsu.com>
Fri, 14 Jan 2011 09:35:59 +0000 (17:35 +0800)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 7 Mar 2011 17:05:09 +0000 (12:05 -0500)
These macros had never been used for several years.
So, remove them.

Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/export.c
fs/nfsd/nfs4idmap.c
fs/nfsd/nfs4state.c

index 8b31e5f8795de8fb520e5f1a0676b60c93530c01..ad000aeb21a2aa85d351b32038f57032cfb8a78e 100644 (file)
@@ -299,7 +299,6 @@ svc_expkey_update(struct svc_expkey *new, struct svc_expkey *old)
 
 #define        EXPORT_HASHBITS         8
 #define        EXPORT_HASHMAX          (1<< EXPORT_HASHBITS)
-#define        EXPORT_HASHMASK         (EXPORT_HASHMAX -1)
 
 static struct cache_head *export_table[EXPORT_HASHMAX];
 
index 6d2c397d458b6c9481998711ad1bb406fd6fd79c..55780a22fdbdcc02b0dcfb05bfadb3dc2417347e 100644 (file)
@@ -63,7 +63,6 @@ struct ent {
 
 #define ENT_HASHBITS          8
 #define ENT_HASHMAX           (1 << ENT_HASHBITS)
-#define ENT_HASHMASK          (ENT_HASHMAX - 1)
 
 static void
 ent_init(struct cache_head *cnew, struct cache_head *citm)
index 54b60bfceb8d0c6b8d4ec5100a2aedb6600a1d5d..c4f2b0f63e46b3e3c942ccff699fa4c98a58fe0e 100644 (file)
@@ -148,7 +148,7 @@ static struct list_head     ownerstr_hashtbl[OWNER_HASH_SIZE];
 /* hash table for nfs4_file */
 #define FILE_HASH_BITS                   8
 #define FILE_HASH_SIZE                  (1 << FILE_HASH_BITS)
-#define FILE_HASH_MASK                  (FILE_HASH_SIZE - 1)
+
 /* hash table for (open)nfs4_stateid */
 #define STATEID_HASH_BITS              10
 #define STATEID_HASH_SIZE              (1 << STATEID_HASH_BITS)