mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-18 09:44:18 +08:00
c04fecb4d9
Remove the dir hash table (dirtbl), and use the rsb hash table (rsbtbl) as the resource directory. It has always been an unnecessary duplication of information. This improves efficiency by using a single rsbtbl lookup in many cases where both rsbtbl and dirtbl lookups were needed previously. This eliminates the need to handle cases of rsbtbl and dirtbl being out of sync. In many cases there will be memory savings because the dir hash table no longer exists. Signed-off-by: David Teigland <teigland@redhat.com>
35 lines
1.5 KiB
C
35 lines
1.5 KiB
C
/******************************************************************************
|
|
*******************************************************************************
|
|
**
|
|
** Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
|
|
** Copyright (C) 2004-2005 Red Hat, Inc. All rights reserved.
|
|
**
|
|
** This copyrighted material is made available to anyone wishing to use,
|
|
** modify, copy, or redistribute it subject to the terms and conditions
|
|
** of the GNU General Public License v.2.
|
|
**
|
|
*******************************************************************************
|
|
******************************************************************************/
|
|
|
|
#ifndef __RECOVER_DOT_H__
|
|
#define __RECOVER_DOT_H__
|
|
|
|
int dlm_wait_function(struct dlm_ls *ls, int (*testfn) (struct dlm_ls *ls));
|
|
uint32_t dlm_recover_status(struct dlm_ls *ls);
|
|
void dlm_set_recover_status(struct dlm_ls *ls, uint32_t status);
|
|
int dlm_recover_members_wait(struct dlm_ls *ls);
|
|
int dlm_recover_directory_wait(struct dlm_ls *ls);
|
|
int dlm_recover_locks_wait(struct dlm_ls *ls);
|
|
int dlm_recover_done_wait(struct dlm_ls *ls);
|
|
int dlm_recover_masters(struct dlm_ls *ls);
|
|
int dlm_recover_master_reply(struct dlm_ls *ls, struct dlm_rcom *rc);
|
|
int dlm_recover_locks(struct dlm_ls *ls);
|
|
void dlm_recovered_lock(struct dlm_rsb *r);
|
|
int dlm_create_root_list(struct dlm_ls *ls);
|
|
void dlm_release_root_list(struct dlm_ls *ls);
|
|
void dlm_clear_toss(struct dlm_ls *ls);
|
|
void dlm_recover_rsbs(struct dlm_ls *ls);
|
|
|
|
#endif /* __RECOVER_DOT_H__ */
|
|
|