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); 223a747f4aSAlexander Aring int dlm_recover_masters(struct dlm_ls *ls, uint64_t seq, 233a747f4aSAlexander Aring const struct list_head *root_list); 2411519351SAlexander Aring int dlm_recover_master_reply(struct dlm_ls *ls, const struct dlm_rcom *rc); 253a747f4aSAlexander Aring int dlm_recover_locks(struct dlm_ls *ls, uint64_t seq, 263a747f4aSAlexander Aring const struct list_head *root_list); 27e7fd4179SDavid Teigland void dlm_recovered_lock(struct dlm_rsb *r); 28*4f5957a9SDavid Teigland void dlm_clear_inactive(struct dlm_ls *ls); 293a747f4aSAlexander Aring void dlm_recover_rsbs(struct dlm_ls *ls, const struct list_head *root_list); 30e7fd4179SDavid Teigland 31e7fd4179SDavid Teigland #endif /* __RECOVER_DOT_H__ */ 32e7fd4179SDavid Teigland 33