xref: /OK3568_Linux_fs/kernel/fs/dlm/dir.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0-only */
2*4882a593Smuzhiyun /******************************************************************************
3*4882a593Smuzhiyun *******************************************************************************
4*4882a593Smuzhiyun **
5*4882a593Smuzhiyun **  Copyright (C) Sistina Software, Inc.  1997-2003  All rights reserved.
6*4882a593Smuzhiyun **  Copyright (C) 2004-2005 Red Hat, Inc.  All rights reserved.
7*4882a593Smuzhiyun **
8*4882a593Smuzhiyun **
9*4882a593Smuzhiyun *******************************************************************************
10*4882a593Smuzhiyun ******************************************************************************/
11*4882a593Smuzhiyun 
12*4882a593Smuzhiyun #ifndef __DIR_DOT_H__
13*4882a593Smuzhiyun #define __DIR_DOT_H__
14*4882a593Smuzhiyun 
15*4882a593Smuzhiyun int dlm_dir_nodeid(struct dlm_rsb *rsb);
16*4882a593Smuzhiyun int dlm_hash2nodeid(struct dlm_ls *ls, uint32_t hash);
17*4882a593Smuzhiyun void dlm_recover_dir_nodeid(struct dlm_ls *ls);
18*4882a593Smuzhiyun int dlm_recover_directory(struct dlm_ls *ls);
19*4882a593Smuzhiyun void dlm_copy_master_names(struct dlm_ls *ls, char *inbuf, int inlen,
20*4882a593Smuzhiyun 	char *outbuf, int outlen, int nodeid);
21*4882a593Smuzhiyun 
22*4882a593Smuzhiyun #endif				/* __DIR_DOT_H__ */
23*4882a593Smuzhiyun 
24