diff options
author | Alexander Aring <aahringo@redhat.com> | 2024-04-15 14:39:39 -0400 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2024-04-16 14:34:39 -0500 |
commit | 6c648035cbe75d78836f6d7d2fdd9d996048a66b (patch) | |
tree | e062c9951814bb7f3fcac71332d1ac54ff383e06 /fs/dlm/recover.c | |
parent | 93a693d19d2a4aeaa5aede5354cc0f749a780374 (diff) |
dlm: switch to use rhashtable for rsbs
Replace our own hash table with the more advanced rhashtable
for keeping rsb structs.
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/recover.c')
-rw-r--r-- | fs/dlm/recover.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/dlm/recover.c b/fs/dlm/recover.c index 512c1ae81a96..c21ef115123b 100644 --- a/fs/dlm/recover.c +++ b/fs/dlm/recover.c @@ -887,7 +887,8 @@ void dlm_clear_toss(struct dlm_ls *ls) spin_lock_bh(&ls->ls_rsbtbl_lock); list_for_each_entry_safe(r, safe, &ls->ls_toss, res_rsbs_list) { list_del(&r->res_rsbs_list); - rb_erase(&r->res_hashnode, &ls->ls_rsbtbl[r->res_bucket].r); + rhashtable_remove_fast(&ls->ls_rsbtbl, &r->res_node, + dlm_rhash_rsb_params); dlm_free_rsb(r); count++; } |