xref: /openbmc/linux/fs/dlm/recover.h (revision c900529f3d9161bfde5cca0754f83b4d3c3e0220)
12522fe45SThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-only */
2e7fd4179SDavid Teigland /******************************************************************************
3e7fd4179SDavid Teigland *******************************************************************************
4e7fd4179SDavid Teigland **
5e7fd4179SDavid Teigland **  Copyright (C) Sistina Software, Inc.  1997-2003  All rights reserved.
6e7fd4179SDavid Teigland **  Copyright (C) 2004-2005 Red Hat, Inc.  All rights reserved.
7e7fd4179SDavid Teigland **
8e7fd4179SDavid Teigland **
9e7fd4179SDavid Teigland *******************************************************************************
10e7fd4179SDavid Teigland ******************************************************************************/
11e7fd4179SDavid Teigland 
12e7fd4179SDavid Teigland #ifndef __RECOVER_DOT_H__
13e7fd4179SDavid Teigland #define __RECOVER_DOT_H__
14e7fd4179SDavid Teigland 
15e7fd4179SDavid Teigland int dlm_wait_function(struct dlm_ls *ls, int (*testfn) (struct dlm_ls *ls));
16e7fd4179SDavid Teigland uint32_t dlm_recover_status(struct dlm_ls *ls);
17e7fd4179SDavid Teigland void dlm_set_recover_status(struct dlm_ls *ls, uint32_t status);
18c4f4e135SAlexander Aring int dlm_recover_members_wait(struct dlm_ls *ls, uint64_t seq);
19c4f4e135SAlexander Aring int dlm_recover_directory_wait(struct dlm_ls *ls, uint64_t seq);
20c4f4e135SAlexander Aring int dlm_recover_locks_wait(struct dlm_ls *ls, uint64_t seq);
21c4f4e135SAlexander Aring int dlm_recover_done_wait(struct dlm_ls *ls, uint64_t seq);
22c4f4e135SAlexander Aring int dlm_recover_masters(struct dlm_ls *ls, uint64_t seq);
23*11519351SAlexander Aring int dlm_recover_master_reply(struct dlm_ls *ls, const struct dlm_rcom *rc);
24c4f4e135SAlexander Aring int dlm_recover_locks(struct dlm_ls *ls, uint64_t seq);
25e7fd4179SDavid Teigland void dlm_recovered_lock(struct dlm_rsb *r);
26e7fd4179SDavid Teigland int dlm_create_root_list(struct dlm_ls *ls);
27e7fd4179SDavid Teigland void dlm_release_root_list(struct dlm_ls *ls);
28c04fecb4SDavid Teigland void dlm_clear_toss(struct dlm_ls *ls);
29e7fd4179SDavid Teigland void dlm_recover_rsbs(struct dlm_ls *ls);
30e7fd4179SDavid Teigland 
31e7fd4179SDavid Teigland #endif				/* __RECOVER_DOT_H__ */
32e7fd4179SDavid Teigland 
33