linux/fs/jfs/jfs_incore.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 *   Copyright (C) International Business Machines Corp., 2000-2004
 *   Portions Copyright (C) Christoph Hellwig, 2001-2002
 */
#ifndef _H_JFS_INCORE
#define _H_JFS_INCORE

#include <linux/mutex.h>
#include <linux/rwsem.h>
#include <linux/slab.h>
#include <linux/bitops.h>
#include <linux/uuid.h>

#include "jfs_types.h"
#include "jfs_xtree.h"
#include "jfs_dtree.h"

/*
 * JFS magic number
 */
#define JFS_SUPER_MAGIC

/*
 * JFS-private inode information
 */
struct jfs_inode_info {};
#define i_xtroot
#define i_imap
#define i_dirtable
#define i_dtroot
#define i_inline
#define i_inline_ea
#define i_inline_all

#define IREAD_LOCK(ip, subclass)
#define IREAD_UNLOCK(ip)
#define IWRITE_LOCK(ip, subclass)
#define IWRITE_UNLOCK(ip)

/*
 * cflag
 */
enum cflags {};

/*
 * commit_mutex nesting subclasses:
 */
enum commit_mutex_class
{};

/*
 * rdwrlock subclasses:
 * The dmap inode may be locked while a normal inode or the imap inode are
 * locked.
 */
enum rdwrlock_class
{};

#define set_cflag(flag, ip)
#define clear_cflag(flag, ip)
#define test_cflag(flag, ip)
#define test_and_clear_cflag(flag, ip)
/*
 * JFS-private superblock information.
 */
struct jfs_sb_info {};

/* jfs_sb_info commit_state */
#define IN_LAZYCOMMIT

static inline struct jfs_inode_info *JFS_IP(struct inode *inode)
{}

static inline int jfs_dirtable_inline(struct inode *inode)
{}

static inline struct jfs_sb_info *JFS_SBI(struct super_block *sb)
{}

static inline int isReadOnly(struct inode *inode)
{}
#endif /* _H_JFS_INCORE */