linux/fs/ocfs2/ocfs2_lockid.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * ocfs2_lockid.h
 *
 * Defines OCFS2 lockid bits.
 *
 * Copyright (C) 2002, 2005 Oracle.  All rights reserved.
 */

#ifndef OCFS2_LOCKID_H
#define OCFS2_LOCKID_H

/* lock ids are made up in the following manner:
 * name[0]     --> type
 * name[1-6]   --> 6 pad characters, reserved for now
 * name[7-22]  --> block number, expressed in hex as 16 chars
 * name[23-30] --> i_generation, expressed in hex 8 chars
 * name[31]    --> '\0' */
#define OCFS2_LOCK_ID_MAX_LEN
#define OCFS2_LOCK_ID_PAD

#define OCFS2_DENTRY_LOCK_INO_START

enum ocfs2_lock_type {};

static inline char ocfs2_lock_type_char(enum ocfs2_lock_type type)
{}

static char *ocfs2_lock_type_strings[] =;

static inline const char *ocfs2_lock_type_string(enum ocfs2_lock_type type)
{}

#endif  /* OCFS2_LOCKID_H */