diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-30 08:50:03 -0400 |
---|---|---|
committer | Bob Peterson <rpeterso@redhat.com> | 2017-08-30 09:14:39 -0400 |
commit | d296b15ed58231bd991c0fb0f3592d595539bcd1 (patch) | |
tree | a2d5b19878da72e98b5a0e7cdf048b3b6a28a0ec | |
parent | 7023a0b16f66a2f1358c95989d23142d8191fd6e (diff) |
gfs2: constify rhashtable_params
rhashtable_params are not supposed to change at runtime. All
Functions rhashtable_* working with const rhashtable_params
provided by <linux/rhashtable.h>. So mark the non-const structs
as const.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
-rw-r--r-- | fs/gfs2/glock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c index 4178417249c3..98e845b7841b 100644 --- a/fs/gfs2/glock.c +++ b/fs/gfs2/glock.c | |||
@@ -72,7 +72,7 @@ static DEFINE_SPINLOCK(lru_lock); | |||
72 | #define GFS2_GL_HASH_SHIFT 15 | 72 | #define GFS2_GL_HASH_SHIFT 15 |
73 | #define GFS2_GL_HASH_SIZE BIT(GFS2_GL_HASH_SHIFT) | 73 | #define GFS2_GL_HASH_SIZE BIT(GFS2_GL_HASH_SHIFT) |
74 | 74 | ||
75 | static struct rhashtable_params ht_parms = { | 75 | static const struct rhashtable_params ht_parms = { |
76 | .nelem_hint = GFS2_GL_HASH_SIZE * 3 / 4, | 76 | .nelem_hint = GFS2_GL_HASH_SIZE * 3 / 4, |
77 | .key_len = offsetofend(struct lm_lockname, ln_type), | 77 | .key_len = offsetofend(struct lm_lockname, ln_type), |
78 | .key_offset = offsetof(struct gfs2_glock, gl_name), | 78 | .key_offset = offsetof(struct gfs2_glock, gl_name), |