diff options
Diffstat (limited to 'fs/ramfs/inode.c')
| -rw-r--r-- | fs/ramfs/inode.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/fs/ramfs/inode.c b/fs/ramfs/inode.c index 0a88917605ae..c66bd5e4c05c 100644 --- a/fs/ramfs/inode.c +++ b/fs/ramfs/inode.c | |||
| @@ -34,13 +34,12 @@ | |||
| 34 | #include <linux/ramfs.h> | 34 | #include <linux/ramfs.h> |
| 35 | 35 | ||
| 36 | #include <asm/uaccess.h> | 36 | #include <asm/uaccess.h> |
| 37 | #include "internal.h" | ||
| 37 | 38 | ||
| 38 | /* some random number */ | 39 | /* some random number */ |
| 39 | #define RAMFS_MAGIC 0x858458f6 | 40 | #define RAMFS_MAGIC 0x858458f6 |
| 40 | 41 | ||
| 41 | static struct super_operations ramfs_ops; | 42 | static struct super_operations ramfs_ops; |
| 42 | static struct address_space_operations ramfs_aops; | ||
| 43 | static struct inode_operations ramfs_file_inode_operations; | ||
| 44 | static struct inode_operations ramfs_dir_inode_operations; | 43 | static struct inode_operations ramfs_dir_inode_operations; |
| 45 | 44 | ||
| 46 | static struct backing_dev_info ramfs_backing_dev_info = { | 45 | static struct backing_dev_info ramfs_backing_dev_info = { |
| @@ -142,25 +141,6 @@ static int ramfs_symlink(struct inode * dir, struct dentry *dentry, const char * | |||
| 142 | return error; | 141 | return error; |
| 143 | } | 142 | } |
| 144 | 143 | ||
| 145 | static struct address_space_operations ramfs_aops = { | ||
| 146 | .readpage = simple_readpage, | ||
| 147 | .prepare_write = simple_prepare_write, | ||
| 148 | .commit_write = simple_commit_write | ||
| 149 | }; | ||
| 150 | |||
| 151 | struct file_operations ramfs_file_operations = { | ||
| 152 | .read = generic_file_read, | ||
| 153 | .write = generic_file_write, | ||
| 154 | .mmap = generic_file_mmap, | ||
| 155 | .fsync = simple_sync_file, | ||
| 156 | .sendfile = generic_file_sendfile, | ||
| 157 | .llseek = generic_file_llseek, | ||
| 158 | }; | ||
| 159 | |||
| 160 | static struct inode_operations ramfs_file_inode_operations = { | ||
| 161 | .getattr = simple_getattr, | ||
| 162 | }; | ||
| 163 | |||
| 164 | static struct inode_operations ramfs_dir_inode_operations = { | 144 | static struct inode_operations ramfs_dir_inode_operations = { |
| 165 | .create = ramfs_create, | 145 | .create = ramfs_create, |
| 166 | .lookup = simple_lookup, | 146 | .lookup = simple_lookup, |
