Skip to contentSkip to conversation

GFS2: Remove unnecessary declare of jhash in rhashtable params

PATCH New Bob Peterson 1 participant 1 message Sep 2, 2015 1 message not in the archive GFS2 file system

lore
Share & tools
lore
#1 lore raw

PATCH 1/1 GFS2: Remove unnecessary declare of jhash in rhashtable params

In reply to a message not in the archive

Hi,

This patch simply removes the field .jhash from structure ht_parms, as suggested by Andreas, since jhash is already the default.

---

fs/gfs2/glock.c +0 -1
index c9c5c45..ae3f846 100644
@@ -76,7 +76,6 @@ static struct rhashtable_params ht_parms = {
 	.key_len = sizeof(struct lm_lockname),
 	.key_offset = offsetof(struct gfs2_glock, gl_name),
 	.head_offset = offsetof(struct gfs2_glock, gl_node),
-	.hashfn = jhash,
 };
 
 static struct rhashtable gl_hash_table;