Skip to content

Commit d296b15

Browse files
ArvindYadavCsAstralBob
authored andcommitted
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 <[email protected]> Signed-off-by: Bob Peterson <[email protected]>
1 parent 7023a0b commit d296b15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/gfs2/glock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ static DEFINE_SPINLOCK(lru_lock);
7272
#define GFS2_GL_HASH_SHIFT 15
7373
#define GFS2_GL_HASH_SIZE BIT(GFS2_GL_HASH_SHIFT)
7474

75-
static struct rhashtable_params ht_parms = {
75+
static const struct rhashtable_params ht_parms = {
7676
.nelem_hint = GFS2_GL_HASH_SIZE * 3 / 4,
7777
.key_len = offsetofend(struct lm_lockname, ln_type),
7878
.key_offset = offsetof(struct gfs2_glock, gl_name),

0 commit comments

Comments
 (0)