diff options
| author | Andrew Morton <akpm@digeo.com> | 2002-10-07 20:39:15 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-10-07 20:39:15 -0700 |
| commit | 1b5dd0c2d0bd49b66c99cadac69ed50fbf85492e (patch) | |
| tree | 8d7dc69a2a23641b606aaa13a7b9c6853c075cae /include/linux | |
| parent | 5b73f88291081dc1120afc08d2786a6fe2b1e6d6 (diff) | |
[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.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/fs.h | 6 |
1 files changed, 6 insertions, 0 deletions
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; |
