From 1b5dd0c2d0bd49b66c99cadac69ed50fbf85492e Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Mon, 7 Oct 2002 20:39:15 -0700 Subject: [PATCH] move library functions from ramfs into libfs From Bill Irwin The simple_link(), simple_unlink(), simple_rename(), simple_sync_file(), simple_rmdir(), and simple_empty() functions are easy to duplicate. Basically, I duplicated them in an fs patch of mine, and Linus told me to put them in libfs.c Pat Mochel has acked the changes for driverfs (in that he'll convert the stuff over when they're available from libfs), and my hugetlbfs implementation was the thing that spurred the whole incident. --- include/linux/fs.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/linux') diff --git a/include/linux/fs.h b/include/linux/fs.h index 327a63b8b934..cf33351023cf 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -1286,6 +1286,12 @@ extern int dcache_dir_close(struct inode *, struct file *); extern loff_t dcache_dir_lseek(struct file *, loff_t, int); extern int dcache_readdir(struct file *, void *, filldir_t); extern int simple_statfs(struct super_block *, struct statfs *); +extern int simple_link(struct dentry *, struct inode *, struct dentry *); +extern int simple_unlink(struct inode *, struct dentry *); +extern int simple_rmdir(struct inode *, struct dentry *); +extern int simple_rename(struct inode *, struct dentry *, struct inode *, struct dentry *); +extern int simple_sync_file(struct file *, struct dentry *, int); +extern int simple_empty(struct dentry *); extern struct dentry *simple_lookup(struct inode *, struct dentry *); extern ssize_t generic_read_dir(struct file *, char *, size_t, loff_t *); extern struct file_operations simple_dir_operations; -- cgit v1.2.3