linux/fs/minix/dir.c

// SPDX-License-Identifier: GPL-2.0
/*
 *  linux/fs/minix/dir.c
 *
 *  Copyright (C) 1991, 1992 Linus Torvalds
 *
 *  minix directory handling functions
 *
 *  Updated to filesystem version 3 by Daniel Aragones
 */

#include "minix.h"
#include <linux/buffer_head.h>
#include <linux/highmem.h>
#include <linux/swap.h>

minix_dirent;
minix3_dirent;

static int minix_readdir(struct file *, struct dir_context *);

const struct file_operations minix_dir_operations =;

/*
 * Return the offset into page `page_nr' of the last valid
 * byte in that page, plus one.
 */
static unsigned
minix_last_byte(struct inode *inode, unsigned long page_nr)
{}

static void dir_commit_chunk(struct page *page, loff_t pos, unsigned len)
{}

static int minix_handle_dirsync(struct inode *dir)
{}

static void *dir_get_page(struct inode *dir, unsigned long n, struct page **p)
{}

static inline void *minix_next_entry(void *de, struct minix_sb_info *sbi)
{}

static int minix_readdir(struct file *file, struct dir_context *ctx)
{}

static inline int namecompare(int len, int maxlen,
	const char * name, const char * buffer)
{}

/*
 *	minix_find_entry()
 *
 * finds an entry in the specified directory with the wanted name. It
 * returns the cache buffer in which the entry was found, and the entry
 * itself (as a parameter - res_dir). It does NOT read the inode of the
 * entry - you'll have to do that yourself if you want to.
 */
minix_dirent *minix_find_entry(struct dentry *dentry, struct page **res_page)
{}

int minix_add_link(struct dentry *dentry, struct inode *inode)
{}

int minix_delete_entry(struct minix_dir_entry *de, struct page *page)
{}

int minix_make_empty(struct inode *inode, struct inode *dir)
{}

/*
 * routine to check that the specified directory is empty (for rmdir)
 */
int minix_empty_dir(struct inode * inode)
{}

/* Releases the page */
int minix_set_link(struct minix_dir_entry *de, struct page *page,
		struct inode *inode)
{}

struct minix_dir_entry * minix_dotdot (struct inode *dir, struct page **p)
{}

ino_t minix_inode_by_name(struct dentry *dentry)
{}