linux/fs/efs/efs.h

/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Copyright (c) 1999 Al Smith, <[email protected]>
 *
 * Portions derived from work (c) 1995,1996 Christian Vogelgsang.
 * Portions derived from IRIX header files (c) 1988 Silicon Graphics
 */
#ifndef _EFS_EFS_H_
#define _EFS_EFS_H_

#ifdef pr_fmt
#undef pr_fmt
#endif

#define pr_fmt(fmt)

#include <linux/fs.h>
#include <linux/uaccess.h>

#define EFS_VERSION

/* 1 block is 512 bytes */
#define EFS_BLOCKSIZE_BITS
#define EFS_BLOCKSIZE

efs_block_t;
efs_ino_t;

#define EFS_DIRECTEXTENTS

/*
 * layout of an extent, in memory and on disk. 8 bytes exactly.
 */
efs_extent;

efs_devs;

/*
 * extent based filesystem inode as it appears on disk.  The efs inode
 * is exactly 128 bytes long.
 */
struct	efs_dinode {};

/* efs inode storage in memory */
struct efs_inode_info {};

#include <linux/efs_fs_sb.h>

#define EFS_DIRBSIZE_BITS
#define EFS_DIRBSIZE

struct efs_dentry {};

#define EFS_DENTSIZE
#define EFS_MAXNAMELEN

#define EFS_DIRBLK_HEADERSIZE
#define EFS_DIRBLK_MAGIC

struct efs_dir {};

#define EFS_MAXENTS

#define EFS_SLOTAT(dir, slot)

#define EFS_REALOFF(offset)


static inline struct efs_inode_info *INODE_INFO(struct inode *inode)
{}

static inline struct efs_sb_info *SUPER_INFO(struct super_block *sb)
{}

struct statfs;
struct fid;

extern const struct inode_operations efs_dir_inode_operations;
extern const struct file_operations efs_dir_operations;
extern const struct address_space_operations efs_symlink_aops;

extern struct inode *efs_iget(struct super_block *, unsigned long);
extern efs_block_t efs_map_block(struct inode *, efs_block_t);
extern int efs_get_block(struct inode *, sector_t, struct buffer_head *, int);

extern struct dentry *efs_lookup(struct inode *, struct dentry *, unsigned int);
extern struct dentry *efs_fh_to_dentry(struct super_block *sb, struct fid *fid,
		int fh_len, int fh_type);
extern struct dentry *efs_fh_to_parent(struct super_block *sb, struct fid *fid,
		int fh_len, int fh_type);
extern struct dentry *efs_get_parent(struct dentry *);
extern int efs_bmap(struct inode *, int);

#endif /* _EFS_EFS_H_ */