linux/fs/freevxfs/vxfs_super.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2000-2001 Christoph Hellwig.
 * Copyright (c) 2016 Krzysztof Blaszkowski
 */

/*
 * Veritas filesystem driver - superblock related routines.
 */
#include <linux/init.h>
#include <linux/module.h>

#include <linux/blkdev.h>
#include <linux/fs.h>
#include <linux/buffer_head.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/stat.h>
#include <linux/vfs.h>
#include <linux/fs_context.h>

#include "vxfs.h"
#include "vxfs_extern.h"
#include "vxfs_dir.h"
#include "vxfs_inode.h"


MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();

static struct kmem_cache *vxfs_inode_cachep;

/**
 * vxfs_put_super - free superblock resources
 * @sbp:	VFS superblock.
 *
 * Description:
 *   vxfs_put_super frees all resources allocated for @sbp
 *   after the last instance of the filesystem is unmounted.
 */

static void
vxfs_put_super(struct super_block *sbp)
{}

/**
 * vxfs_statfs - get filesystem information
 * @dentry:	VFS dentry to locate superblock
 * @bufp:	output buffer
 *
 * Description:
 *   vxfs_statfs fills the statfs buffer @bufp with information
 *   about the filesystem described by @dentry.
 *
 * Returns:
 *   Zero.
 *
 * Locking:
 *   No locks held.
 *
 * Notes:
 *   This is everything but complete...
 */
static int
vxfs_statfs(struct dentry *dentry, struct kstatfs *bufp)
{}

static int vxfs_reconfigure(struct fs_context *fc)
{}

static struct inode *vxfs_alloc_inode(struct super_block *sb)
{}

static void vxfs_free_inode(struct inode *inode)
{}

static const struct super_operations vxfs_super_ops =;

static int vxfs_try_sb_magic(struct super_block *sbp, struct fs_context *fc,
		unsigned blk, __fs32 magic)
{}

/**
 * vxfs_fill_super - read superblock into memory and initialize filesystem
 * @sbp:		VFS superblock (to fill)
 * @fc:			filesytem context
 *
 * Description:
 *   We are called on the first mount of a filesystem to read the
 *   superblock into memory and do some basic setup.
 *
 * Returns:
 *   The superblock on success, else %NULL.
 *
 * Locking:
 *   We are under @sbp->s_lock.
 */
static int vxfs_fill_super(struct super_block *sbp, struct fs_context *fc)
{}

/*
 * The usual module blurb.
 */
static int vxfs_get_tree(struct fs_context *fc)
{}

static const struct fs_context_operations vxfs_context_ops =;

static int vxfs_init_fs_context(struct fs_context *fc)
{}

static struct file_system_type vxfs_fs_type =;
MODULE_ALIAS_FS(); /* makes mount -t vxfs autoload the module */
MODULE_ALIAS();

static int __init
vxfs_init(void)
{}

static void __exit
vxfs_cleanup(void)
{}

module_init();
module_exit(vxfs_cleanup);