mirror of
https://github.com/torvalds/linux.git
synced 2024-11-14 16:12:02 +00:00
fs: dlm: remove clear_members_cb
This patch is just a small cleanup to directly call remove_remote_member() instead of going over clear_members_cb() which just calls remove_remote_member(). Signed-off-by: Alexander Aring <aahringo@redhat.com> Signed-off-by: David Teigland <teigland@redhat.com>
This commit is contained in:
parent
8c95006d55
commit
c84c47333a
@ -393,14 +393,9 @@ static void remove_remote_member(int nodeid)
|
||||
dlm_midcomms_remove_member(nodeid);
|
||||
}
|
||||
|
||||
static void clear_members_cb(int nodeid)
|
||||
{
|
||||
remove_remote_member(nodeid);
|
||||
}
|
||||
|
||||
void dlm_clear_members(struct dlm_ls *ls)
|
||||
{
|
||||
clear_memb_list(&ls->ls_nodes, clear_members_cb);
|
||||
clear_memb_list(&ls->ls_nodes, remove_remote_member);
|
||||
ls->ls_num_nodes = 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user