linux/fs/quota/quota_v2.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 *	vfsv0 quota IO operations on file
 */

#include <linux/errno.h>
#include <linux/fs.h>
#include <linux/mount.h>
#include <linux/dqblk_v2.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/quotaops.h>

#include <asm/byteorder.h>

#include "quota_tree.h"
#include "quotaio_v2.h"

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

static void v2r0_mem2diskdqb(void *dp, struct dquot *dquot);
static void v2r0_disk2memdqb(struct dquot *dquot, void *dp);
static int v2r0_is_id(void *dp, struct dquot *dquot);
static void v2r1_mem2diskdqb(void *dp, struct dquot *dquot);
static void v2r1_disk2memdqb(struct dquot *dquot, void *dp);
static int v2r1_is_id(void *dp, struct dquot *dquot);

static const struct qtree_fmt_operations v2r0_qtree_ops =;

static const struct qtree_fmt_operations v2r1_qtree_ops =;

#define QUOTABLOCK_BITS
#define QUOTABLOCK_SIZE

static inline qsize_t v2_stoqb(qsize_t space)
{}

static inline qsize_t v2_qbtos(qsize_t blocks)
{}

static int v2_read_header(struct super_block *sb, int type,
			  struct v2_disk_dqheader *dqhead)
{}

/* Check whether given file is really vfsv0 quotafile */
static int v2_check_quota_file(struct super_block *sb, int type)
{}

/* Read information header from quota file */
static int v2_read_file_info(struct super_block *sb, int type)
{}

/* Write information header to quota file */
static int v2_write_file_info(struct super_block *sb, int type)
{}

static void v2r0_disk2memdqb(struct dquot *dquot, void *dp)
{}

static void v2r0_mem2diskdqb(void *dp, struct dquot *dquot)
{}

static int v2r0_is_id(void *dp, struct dquot *dquot)
{}

static void v2r1_disk2memdqb(struct dquot *dquot, void *dp)
{}

static void v2r1_mem2diskdqb(void *dp, struct dquot *dquot)
{}

static int v2r1_is_id(void *dp, struct dquot *dquot)
{}

static int v2_read_dquot(struct dquot *dquot)
{}

static int v2_write_dquot(struct dquot *dquot)
{}

static int v2_release_dquot(struct dquot *dquot)
{}

static int v2_free_file_info(struct super_block *sb, int type)
{}

static int v2_get_next_id(struct super_block *sb, struct kqid *qid)
{}

static const struct quota_format_ops v2_format_ops =;

static struct quota_format_type v2r0_quota_format =;

static struct quota_format_type v2r1_quota_format =;

static int __init init_v2_quota_format(void)
{}

static void __exit exit_v2_quota_format(void)
{}

module_init();
module_exit(exit_v2_quota_format);