linux/fs/affs/namei.c

// SPDX-License-Identifier: GPL-2.0
/*
 *  linux/fs/affs/namei.c
 *
 *  (c) 1996  Hans-Joachim Widmaier - Rewritten
 *
 *  (C) 1993  Ray Burr - Modified for Amiga FFS filesystem.
 *
 *  (C) 1991  Linus Torvalds - minix filesystem
 */

#include "affs.h"
#include <linux/exportfs.h>

toupper_t;

/* Simple toupper() for DOS\1 */

static int
affs_toupper(int ch)
{}

/* International toupper() for DOS\3 ("international") */

static int
affs_intl_toupper(int ch)
{}

static inline toupper_t
affs_get_toupper(struct super_block *sb)
{}

/*
 * Note: the dentry argument is the parent dentry.
 */
static inline int
__affs_hash_dentry(const struct dentry *dentry, struct qstr *qstr, toupper_t fn, bool notruncate)
{}

static int
affs_hash_dentry(const struct dentry *dentry, struct qstr *qstr)
{}

static int
affs_intl_hash_dentry(const struct dentry *dentry, struct qstr *qstr)
{}

static inline int __affs_compare_dentry(unsigned int len,
		const char *str, const struct qstr *name, toupper_t fn,
		bool notruncate)
{}

static int
affs_compare_dentry(const struct dentry *dentry,
		unsigned int len, const char *str, const struct qstr *name)
{}

static int
affs_intl_compare_dentry(const struct dentry *dentry,
		unsigned int len, const char *str, const struct qstr *name)
{}

/*
 * NOTE! unlike strncmp, affs_match returns 1 for success, 0 for failure.
 */

static inline int
affs_match(struct dentry *dentry, const u8 *name2, toupper_t fn)
{}

int
affs_hash_name(struct super_block *sb, const u8 *name, unsigned int len)
{}

static struct buffer_head *
affs_find_entry(struct inode *dir, struct dentry *dentry)
{}

struct dentry *
affs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags)
{}

int
affs_unlink(struct inode *dir, struct dentry *dentry)
{}

int
affs_create(struct mnt_idmap *idmap, struct inode *dir,
	    struct dentry *dentry, umode_t mode, bool excl)
{}

int
affs_mkdir(struct mnt_idmap *idmap, struct inode *dir,
	   struct dentry *dentry, umode_t mode)
{}

int
affs_rmdir(struct inode *dir, struct dentry *dentry)
{}

int
affs_symlink(struct mnt_idmap *idmap, struct inode *dir,
	     struct dentry *dentry, const char *symname)
{}

int
affs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry)
{}

static int
affs_rename(struct inode *old_dir, struct dentry *old_dentry,
	    struct inode *new_dir, struct dentry *new_dentry)
{}

static int
affs_xrename(struct inode *old_dir, struct dentry *old_dentry,
	     struct inode *new_dir, struct dentry *new_dentry)
{}

int affs_rename2(struct mnt_idmap *idmap, struct inode *old_dir,
		 struct dentry *old_dentry, struct inode *new_dir,
		 struct dentry *new_dentry, unsigned int flags)
{}

static struct dentry *affs_get_parent(struct dentry *child)
{}

static struct inode *affs_nfs_get_inode(struct super_block *sb, u64 ino,
					u32 generation)
{}

static struct dentry *affs_fh_to_dentry(struct super_block *sb, struct fid *fid,
					int fh_len, int fh_type)
{}

static struct dentry *affs_fh_to_parent(struct super_block *sb, struct fid *fid,
					int fh_len, int fh_type)
{}

const struct export_operations affs_export_ops =;

const struct dentry_operations affs_dentry_operations =;

const struct dentry_operations affs_intl_dentry_operations =;