[PATCH 1/4] gfs2: Enable automatic glock hash table shrinking
Andreas Gruenbacher <[email protected]> Tue, 28 Jul 2026 18:41:21 +0200
| Newsgroups | dev.linux.lists.gfs2 |
|---|---|
| Message-ID | <[email protected]> |
All of the examiner functions passed to glock_hash_walk() can deal with glock hash table resizes and the resulting repeat visiting of glocks, so we can allow automatic glock hash table shrinking. Signed-off-by: Andreas Gruenbacher <[email protected]> --- fs/gfs2/glock.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c index b8a144d3a73b..0a93824424d5 100644 --- a/fs/gfs2/glock.c +++ b/fs/gfs2/glock.c @@ -78,6 +78,7 @@ static const struct rhashtable_params ht_parms = { .key_len = offsetofend(struct lm_lockname, ln_type), .key_offset = offsetof(struct gfs2_glock, gl_name), .head_offset = offsetof(struct gfs2_glock, gl_node), + .automatic_shrinking = true, }; static struct rhashtable gl_hash_table; -- 2.55.0