diff options
| -rw-r--r-- | fs/ramfs/file-mmu.c | 7 | ||||
| -rw-r--r-- | fs/ramfs/file-nommu.c | 7 | ||||
| -rw-r--r-- | fs/ramfs/inode.c | 7 | ||||
| -rw-r--r-- | fs/ramfs/internal.h | 1 |
4 files changed, 7 insertions, 15 deletions
diff --git a/fs/ramfs/file-mmu.c b/fs/ramfs/file-mmu.c index 4884ac5ae9be..1e56a4e8cf7c 100644 --- a/fs/ramfs/file-mmu.c +++ b/fs/ramfs/file-mmu.c | |||
| @@ -30,13 +30,6 @@ | |||
| 30 | 30 | ||
| 31 | #include "internal.h" | 31 | #include "internal.h" |
| 32 | 32 | ||
| 33 | const struct address_space_operations ramfs_aops = { | ||
| 34 | .readpage = simple_readpage, | ||
| 35 | .write_begin = simple_write_begin, | ||
| 36 | .write_end = simple_write_end, | ||
| 37 | .set_page_dirty = __set_page_dirty_no_writeback, | ||
| 38 | }; | ||
| 39 | |||
| 40 | const struct file_operations ramfs_file_operations = { | 33 | const struct file_operations ramfs_file_operations = { |
| 41 | .read = do_sync_read, | 34 | .read = do_sync_read, |
| 42 | .aio_read = generic_file_aio_read, | 35 | .aio_read = generic_file_aio_read, |
diff --git a/fs/ramfs/file-nommu.c b/fs/ramfs/file-nommu.c index 80862b1aeea7..0b3d8e4cb2fa 100644 --- a/fs/ramfs/file-nommu.c +++ b/fs/ramfs/file-nommu.c | |||
| @@ -34,13 +34,6 @@ static unsigned long ramfs_nommu_get_unmapped_area(struct file *file, | |||
| 34 | unsigned long flags); | 34 | unsigned long flags); |
| 35 | static int ramfs_nommu_mmap(struct file *file, struct vm_area_struct *vma); | 35 | static int ramfs_nommu_mmap(struct file *file, struct vm_area_struct *vma); |
| 36 | 36 | ||
| 37 | const struct address_space_operations ramfs_aops = { | ||
| 38 | .readpage = simple_readpage, | ||
| 39 | .write_begin = simple_write_begin, | ||
| 40 | .write_end = simple_write_end, | ||
| 41 | .set_page_dirty = __set_page_dirty_no_writeback, | ||
| 42 | }; | ||
| 43 | |||
| 44 | const struct file_operations ramfs_file_operations = { | 37 | const struct file_operations ramfs_file_operations = { |
| 45 | .mmap = ramfs_nommu_mmap, | 38 | .mmap = ramfs_nommu_mmap, |
| 46 | .get_unmapped_area = ramfs_nommu_get_unmapped_area, | 39 | .get_unmapped_area = ramfs_nommu_get_unmapped_area, |
diff --git a/fs/ramfs/inode.c b/fs/ramfs/inode.c index 6a3e2c420180..d365b1c4eb3c 100644 --- a/fs/ramfs/inode.c +++ b/fs/ramfs/inode.c | |||
| @@ -43,6 +43,13 @@ | |||
| 43 | static const struct super_operations ramfs_ops; | 43 | static const struct super_operations ramfs_ops; |
| 44 | static const struct inode_operations ramfs_dir_inode_operations; | 44 | static const struct inode_operations ramfs_dir_inode_operations; |
| 45 | 45 | ||
| 46 | static const struct address_space_operations ramfs_aops = { | ||
| 47 | .readpage = simple_readpage, | ||
| 48 | .write_begin = simple_write_begin, | ||
| 49 | .write_end = simple_write_end, | ||
| 50 | .set_page_dirty = __set_page_dirty_no_writeback, | ||
| 51 | }; | ||
| 52 | |||
| 46 | static struct backing_dev_info ramfs_backing_dev_info = { | 53 | static struct backing_dev_info ramfs_backing_dev_info = { |
| 47 | .name = "ramfs", | 54 | .name = "ramfs", |
| 48 | .ra_pages = 0, /* No readahead */ | 55 | .ra_pages = 0, /* No readahead */ |
diff --git a/fs/ramfs/internal.h b/fs/ramfs/internal.h index 6b330639b51d..a9d8ae88fa15 100644 --- a/fs/ramfs/internal.h +++ b/fs/ramfs/internal.h | |||
| @@ -10,5 +10,4 @@ | |||
| 10 | */ | 10 | */ |
| 11 | 11 | ||
| 12 | 12 | ||
| 13 | extern const struct address_space_operations ramfs_aops; | ||
| 14 | extern const struct inode_operations ramfs_file_inode_operations; | 13 | extern const struct inode_operations ramfs_file_inode_operations; |
