summaryrefslogtreecommitdiffstats
path: root/fs/dlm/lockspace.c
diff options
context:
space:
mode:
authorAlexander Aring <aahringo@redhat.com>2024-04-02 15:18:01 -0400
committerDavid Teigland <teigland@redhat.com>2024-04-09 11:44:49 -0500
commit3a747f4a2ee85d51b905e2df940de4a924f8060a (patch)
tree3ae4c45fffec087de34738e3d1b327575c734ebb /fs/dlm/lockspace.c
parentaff46e0f24cd3adc54ec83f4cf834ff9ccb69307 (diff)
downloadlinux-3a747f4a2ee85d51b905e2df940de4a924f8060a.tar.gz
linux-3a747f4a2ee85d51b905e2df940de4a924f8060a.tar.bz2
linux-3a747f4a2ee85d51b905e2df940de4a924f8060a.zip
dlm: move rsb root_list to ls_recover() stack
Move the rsb root_list from the lockspace to a stack variable since it is now only used by the ls_recover() function. Signed-off-by: Alexander Aring <aahringo@redhat.com> Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/lockspace.c')
-rw-r--r--fs/dlm/lockspace.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/dlm/lockspace.c b/fs/dlm/lockspace.c
index c427c76b5f07..da756e5c0f6c 100644
--- a/fs/dlm/lockspace.c
+++ b/fs/dlm/lockspace.c
@@ -580,8 +580,6 @@ static int new_lockspace(const char *name, const char *cluster,
ls->ls_recover_list_count = 0;
ls->ls_local_handle = ls;
init_waitqueue_head(&ls->ls_wait_general);
- INIT_LIST_HEAD(&ls->ls_root_list);
- init_rwsem(&ls->ls_root_sem);
INIT_LIST_HEAD(&ls->ls_masters_list);
rwlock_init(&ls->ls_masters_lock);