#include <linux/fs.h>
#include <linux/mount.h>
#include <linux/init.h>
#include <linux/magic.h>
#include <linux/slab.h>
#include <linux/pagemap.h>
#include <linux/namei.h>
#include <linux/seq_file.h>
#include <linux/exportfs.h>
#include <linux/uuid.h>
#include <linux/statfs.h>
#include "kernfs-internal.h"
struct kmem_cache *kernfs_node_cache __ro_after_init;
struct kmem_cache *kernfs_iattrs_cache __ro_after_init;
struct kernfs_global_locks *kernfs_locks __ro_after_init;
static int kernfs_sop_show_options(struct seq_file *sf, struct dentry *dentry)
{ … }
static int kernfs_sop_show_path(struct seq_file *sf, struct dentry *dentry)
{ … }
static int kernfs_statfs(struct dentry *dentry, struct kstatfs *buf)
{ … }
const struct super_operations kernfs_sops = …;
static int kernfs_encode_fh(struct inode *inode, __u32 *fh, int *max_len,
struct inode *parent)
{ … }
static struct dentry *__kernfs_fh_to_dentry(struct super_block *sb,
struct fid *fid, int fh_len,
int fh_type, bool get_parent)
{ … }
static struct dentry *kernfs_fh_to_dentry(struct super_block *sb,
struct fid *fid, int fh_len,
int fh_type)
{ … }
static struct dentry *kernfs_fh_to_parent(struct super_block *sb,
struct fid *fid, int fh_len,
int fh_type)
{ … }
static struct dentry *kernfs_get_parent_dentry(struct dentry *child)
{ … }
static const struct export_operations kernfs_export_ops = …;
struct kernfs_root *kernfs_root_from_sb(struct super_block *sb)
{ … }
static struct kernfs_node *find_next_ancestor(struct kernfs_node *child,
struct kernfs_node *parent)
{ … }
struct dentry *kernfs_node_dentry(struct kernfs_node *kn,
struct super_block *sb)
{ … }
static int kernfs_fill_super(struct super_block *sb, struct kernfs_fs_context *kfc)
{ … }
static int kernfs_test_super(struct super_block *sb, struct fs_context *fc)
{ … }
static int kernfs_set_super(struct super_block *sb, struct fs_context *fc)
{ … }
const void *kernfs_super_ns(struct super_block *sb)
{ … }
int kernfs_get_tree(struct fs_context *fc)
{ … }
void kernfs_free_fs_context(struct fs_context *fc)
{ … }
void kernfs_kill_sb(struct super_block *sb)
{ … }
static void __init kernfs_mutex_init(void)
{ … }
static void __init kernfs_lock_init(void)
{ … }
void __init kernfs_init(void)
{ … }