diff options
author | Christoph Hellwig <hch@lst.de> | 2006-06-28 07:26:44 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-28 17:59:04 -0400 |
commit | f5e54d6e53a20cef45af7499e86164f0e0d16bb2 (patch) | |
tree | cb92acbb89b84796261bf5563182261ec5654127 /fs | |
parent | a052b68b1e7a31f1e6a721290035e9deb0f6fed9 (diff) |
[PATCH] mark address_space_operations const
Same as with already do with the file operations: keep them in .rodata and
prevents people from doing runtime patching.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Cc: Steven French <sfrench@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs')
77 files changed, 104 insertions, 104 deletions
diff --git a/fs/9p/v9fs_vfs.h b/fs/9p/v9fs_vfs.h index f867b8d3e973..450b0c1b385e 100644 --- a/fs/9p/v9fs_vfs.h +++ b/fs/9p/v9fs_vfs.h | |||
@@ -38,7 +38,7 @@ | |||
38 | */ | 38 | */ |
39 | 39 | ||
40 | extern struct file_system_type v9fs_fs_type; | 40 | extern struct file_system_type v9fs_fs_type; |
41 | extern struct address_space_operations v9fs_addr_operations; | 41 | extern const struct address_space_operations v9fs_addr_operations; |
42 | extern const struct file_operations v9fs_file_operations; | 42 | extern const struct file_operations v9fs_file_operations; |
43 | extern const struct file_operations v9fs_dir_operations; | 43 | extern const struct file_operations v9fs_dir_operations; |
44 | extern struct dentry_operations v9fs_dentry_operations; | 44 | extern struct dentry_operations v9fs_dentry_operations; |
diff --git a/fs/9p/vfs_addr.c b/fs/9p/vfs_addr.c index efda46fb64d9..d4f0aa3c87f2 100644 --- a/fs/9p/vfs_addr.c +++ b/fs/9p/vfs_addr.c | |||
@@ -103,6 +103,6 @@ UnmapAndUnlock: | |||
103 | return retval; | 103 | return retval; |
104 | } | 104 | } |
105 | 105 | ||
106 | struct address_space_operations v9fs_addr_operations = { | 106 | const struct address_space_operations v9fs_addr_operations = { |
107 | .readpage = v9fs_vfs_readpage, | 107 | .readpage = v9fs_vfs_readpage, |
108 | }; | 108 | }; |
diff --git a/fs/adfs/inode.c b/fs/adfs/inode.c index a02802a30798..534f3eecc985 100644 --- a/fs/adfs/inode.c +++ b/fs/adfs/inode.c | |||
@@ -72,7 +72,7 @@ static sector_t _adfs_bmap(struct address_space *mapping, sector_t block) | |||
72 | return generic_block_bmap(mapping, block, adfs_get_block); | 72 | return generic_block_bmap(mapping, block, adfs_get_block); |
73 | } | 73 | } |
74 | 74 | ||
75 | static struct address_space_operations adfs_aops = { | 75 | static const struct address_space_operations adfs_aops = { |
76 | .readpage = adfs_readpage, | 76 | .readpage = adfs_readpage, |
77 | .writepage = adfs_writepage, | 77 | .writepage = adfs_writepage, |
78 | .sync_page = block_sync_page, | 78 | .sync_page = block_sync_page, |
diff --git a/fs/affs/affs.h b/fs/affs/affs.h index a43a876742b8..0ddd4cc0d1a0 100644 --- a/fs/affs/affs.h +++ b/fs/affs/affs.h | |||
@@ -195,9 +195,9 @@ extern struct inode_operations affs_symlink_inode_operations; | |||
195 | extern const struct file_operations affs_file_operations; | 195 | extern const struct file_operations affs_file_operations; |
196 | extern const struct file_operations affs_file_operations_ofs; | 196 | extern const struct file_operations affs_file_operations_ofs; |
197 | extern const struct file_operations affs_dir_operations; | 197 | extern const struct file_operations affs_dir_operations; |
198 | extern struct address_space_operations affs_symlink_aops; | 198 | extern const struct address_space_operations affs_symlink_aops; |
199 | extern struct address_space_operations affs_aops; | 199 | extern const struct address_space_operations affs_aops; |
200 | extern struct address_space_operations affs_aops_ofs; | 200 | extern const struct address_space_operations affs_aops_ofs; |
201 | 201 | ||
202 | extern struct dentry_operations affs_dentry_operations; | 202 | extern struct dentry_operations affs_dentry_operations; |
203 | extern struct dentry_operations affs_dentry_operations_intl; | 203 | extern struct dentry_operations affs_dentry_operations_intl; |
diff --git a/fs/affs/file.c b/fs/affs/file.c index 7076262af39b..3de8590e4f6a 100644 --- a/fs/affs/file.c +++ b/fs/affs/file.c | |||
@@ -406,7 +406,7 @@ static sector_t _affs_bmap(struct address_space *mapping, sector_t block) | |||
406 | { | 406 | { |
407 | return generic_block_bmap(mapping,block,affs_get_block); | 407 | return generic_block_bmap(mapping,block,affs_get_block); |
408 | } | 408 | } |
409 | struct address_space_operations affs_aops = { | 409 | const struct address_space_operations affs_aops = { |
410 | .readpage = affs_readpage, | 410 | .readpage = affs_readpage, |
411 | .writepage = affs_writepage, | 411 | .writepage = affs_writepage, |
412 | .sync_page = block_sync_page, | 412 | .sync_page = block_sync_page, |
@@ -759,7 +759,7 @@ out: | |||
759 | goto done; | 759 | goto done; |
760 | } | 760 | } |
761 | 761 | ||
762 | struct address_space_operations affs_aops_ofs = { | 762 | const struct address_space_operations affs_aops_ofs = { |
763 | .readpage = affs_readpage_ofs, | 763 | .readpage = affs_readpage_ofs, |
764 | //.writepage = affs_writepage_ofs, | 764 | //.writepage = affs_writepage_ofs, |
765 | //.sync_page = affs_sync_page_ofs, | 765 | //.sync_page = affs_sync_page_ofs, |
diff --git a/fs/affs/symlink.c b/fs/affs/symlink.c index 426f0f094f23..f802256a5933 100644 --- a/fs/affs/symlink.c +++ b/fs/affs/symlink.c | |||
@@ -66,7 +66,7 @@ fail: | |||
66 | return err; | 66 | return err; |
67 | } | 67 | } |
68 | 68 | ||
69 | struct address_space_operations affs_symlink_aops = { | 69 | const struct address_space_operations affs_symlink_aops = { |
70 | .readpage = affs_symlink_readpage, | 70 | .readpage = affs_symlink_readpage, |
71 | }; | 71 | }; |
72 | 72 | ||
diff --git a/fs/afs/file.c b/fs/afs/file.c index 7bb716887e29..67d6634101fd 100644 --- a/fs/afs/file.c +++ b/fs/afs/file.c | |||
@@ -35,7 +35,7 @@ struct inode_operations afs_file_inode_operations = { | |||
35 | .getattr = afs_inode_getattr, | 35 | .getattr = afs_inode_getattr, |
36 | }; | 36 | }; |
37 | 37 | ||
38 | struct address_space_operations afs_fs_aops = { | 38 | const struct address_space_operations afs_fs_aops = { |
39 | .readpage = afs_file_readpage, | 39 | .readpage = afs_file_readpage, |
40 | .sync_page = block_sync_page, | 40 | .sync_page = block_sync_page, |
41 | .set_page_dirty = __set_page_dirty_nobuffers, | 41 | .set_page_dirty = __set_page_dirty_nobuffers, |
diff --git a/fs/afs/internal.h b/fs/afs/internal.h index 72febdf9a35a..e88b3b65ae49 100644 --- a/fs/afs/internal.h +++ b/fs/afs/internal.h | |||
@@ -69,7 +69,7 @@ extern const struct file_operations afs_dir_file_operations; | |||
69 | /* | 69 | /* |
70 | * file.c | 70 | * file.c |
71 | */ | 71 | */ |
72 | extern struct address_space_operations afs_fs_aops; | 72 | extern const struct address_space_operations afs_fs_aops; |
73 | extern struct inode_operations afs_file_inode_operations; | 73 | extern struct inode_operations afs_file_inode_operations; |
74 | 74 | ||
75 | #ifdef AFS_CACHING_SUPPORT | 75 | #ifdef AFS_CACHING_SUPPORT |
diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c index 08201fab26cd..a83e889a97cd 100644 --- a/fs/befs/linuxvfs.c +++ b/fs/befs/linuxvfs.c | |||
@@ -73,7 +73,7 @@ static struct inode_operations befs_dir_inode_operations = { | |||
73 | .lookup = befs_lookup, | 73 | .lookup = befs_lookup, |
74 | }; | 74 | }; |
75 | 75 | ||
76 | static struct address_space_operations befs_aops = { | 76 | static const struct address_space_operations befs_aops = { |
77 | .readpage = befs_readpage, | 77 | .readpage = befs_readpage, |
78 | .sync_page = block_sync_page, | 78 | .sync_page = block_sync_page, |
79 | .bmap = befs_bmap, | 79 | .bmap = befs_bmap, |
diff --git a/fs/bfs/bfs.h b/fs/bfs/bfs.h index 9d791004b21c..31973bbbf057 100644 --- a/fs/bfs/bfs.h +++ b/fs/bfs/bfs.h | |||
@@ -50,7 +50,7 @@ static inline struct bfs_inode_info *BFS_I(struct inode *inode) | |||
50 | /* file.c */ | 50 | /* file.c */ |
51 | extern struct inode_operations bfs_file_inops; | 51 | extern struct inode_operations bfs_file_inops; |
52 | extern const struct file_operations bfs_file_operations; | 52 | extern const struct file_operations bfs_file_operations; |
53 | extern struct address_space_operations bfs_aops; | 53 | extern const struct address_space_operations bfs_aops; |
54 | 54 | ||
55 | /* dir.c */ | 55 | /* dir.c */ |
56 | extern struct inode_operations bfs_dir_inops; | 56 | extern struct inode_operations bfs_dir_inops; |
diff --git a/fs/bfs/file.c b/fs/bfs/file.c index d83cd74a2e4e..3d5aca28a0a0 100644 --- a/fs/bfs/file.c +++ b/fs/bfs/file.c | |||
@@ -153,7 +153,7 @@ static sector_t bfs_bmap(struct address_space *mapping, sector_t block) | |||
153 | return generic_block_bmap(mapping, block, bfs_get_block); | 153 | return generic_block_bmap(mapping, block, bfs_get_block); |
154 | } | 154 | } |
155 | 155 | ||
156 | struct address_space_operations bfs_aops = { | 156 | const struct address_space_operations bfs_aops = { |
157 | .readpage = bfs_readpage, | 157 | .readpage = bfs_readpage, |
158 | .writepage = bfs_writepage, | 158 | .writepage = bfs_writepage, |
159 | .sync_page = block_sync_page, | 159 | .sync_page = block_sync_page, |
diff --git a/fs/block_dev.c b/fs/block_dev.c index 028d9fb9c2d5..7f7600e2381c 100644 --- a/fs/block_dev.c +++ b/fs/block_dev.c | |||
@@ -1095,7 +1095,7 @@ static long block_ioctl(struct file *file, unsigned cmd, unsigned long arg) | |||
1095 | return blkdev_ioctl(file->f_mapping->host, file, cmd, arg); | 1095 | return blkdev_ioctl(file->f_mapping->host, file, cmd, arg); |
1096 | } | 1096 | } |
1097 | 1097 | ||
1098 | struct address_space_operations def_blk_aops = { | 1098 | const struct address_space_operations def_blk_aops = { |
1099 | .readpage = blkdev_readpage, | 1099 | .readpage = blkdev_readpage, |
1100 | .writepage = blkdev_writepage, | 1100 | .writepage = blkdev_writepage, |
1101 | .sync_page = block_sync_page, | 1101 | .sync_page = block_sync_page, |
diff --git a/fs/buffer.c b/fs/buffer.c index f23bb647db47..e9994722f4a3 100644 --- a/fs/buffer.c +++ b/fs/buffer.c | |||
@@ -2598,7 +2598,7 @@ int nobh_truncate_page(struct address_space *mapping, loff_t from) | |||
2598 | unsigned offset = from & (PAGE_CACHE_SIZE-1); | 2598 | unsigned offset = from & (PAGE_CACHE_SIZE-1); |
2599 | unsigned to; | 2599 | unsigned to; |
2600 | struct page *page; | 2600 | struct page *page; |
2601 | struct address_space_operations *a_ops = mapping->a_ops; | 2601 | const struct address_space_operations *a_ops = mapping->a_ops; |
2602 | char *kaddr; | 2602 | char *kaddr; |
2603 | int ret = 0; | 2603 | int ret = 0; |
2604 | 2604 | ||
diff --git a/fs/cifs/cifsfs.h b/fs/cifs/cifsfs.h index a6384d83fdef..8f75c6f24701 100644 --- a/fs/cifs/cifsfs.h +++ b/fs/cifs/cifsfs.h | |||
@@ -32,8 +32,8 @@ | |||
32 | #define TRUE 1 | 32 | #define TRUE 1 |
33 | #endif | 33 | #endif |
34 | 34 | ||
35 | extern struct address_space_operations cifs_addr_ops; | 35 | extern const struct address_space_operations cifs_addr_ops; |
36 | extern struct address_space_operations cifs_addr_ops_smallbuf; | 36 | extern const struct address_space_operations cifs_addr_ops_smallbuf; |
37 | 37 | ||
38 | /* Functions related to super block operations */ | 38 | /* Functions related to super block operations */ |
39 | extern struct super_operations cifs_super_ops; | 39 | extern struct super_operations cifs_super_ops; |
diff --git a/fs/cifs/file.c b/fs/cifs/file.c index e9c1573f6aa7..5861eb42e626 100644 --- a/fs/cifs/file.c +++ b/fs/cifs/file.c | |||
@@ -1942,7 +1942,7 @@ static int cifs_prepare_write(struct file *file, struct page *page, | |||
1942 | return 0; | 1942 | return 0; |
1943 | } | 1943 | } |
1944 | 1944 | ||
1945 | struct address_space_operations cifs_addr_ops = { | 1945 | const struct address_space_operations cifs_addr_ops = { |
1946 | .readpage = cifs_readpage, | 1946 | .readpage = cifs_readpage, |
1947 | .readpages = cifs_readpages, | 1947 | .readpages = cifs_readpages, |
1948 | .writepage = cifs_writepage, | 1948 | .writepage = cifs_writepage, |
@@ -1959,7 +1959,7 @@ struct address_space_operations cifs_addr_ops = { | |||
1959 | * contain the header plus one complete page of data. Otherwise, we need | 1959 | * contain the header plus one complete page of data. Otherwise, we need |
1960 | * to leave cifs_readpages out of the address space operations. | 1960 | * to leave cifs_readpages out of the address space operations. |
1961 | */ | 1961 | */ |
1962 | struct address_space_operations cifs_addr_ops_smallbuf = { | 1962 | const struct address_space_operations cifs_addr_ops_smallbuf = { |
1963 | .readpage = cifs_readpage, | 1963 | .readpage = cifs_readpage, |
1964 | .writepage = cifs_writepage, | 1964 | .writepage = cifs_writepage, |
1965 | .writepages = cifs_writepages, | 1965 | .writepages = cifs_writepages, |
diff --git a/fs/coda/symlink.c b/fs/coda/symlink.c index b35e5bbd9c99..76e00a65a75b 100644 --- a/fs/coda/symlink.c +++ b/fs/coda/symlink.c | |||
@@ -50,6 +50,6 @@ fail: | |||
50 | return error; | 50 | return error; |
51 | } | 51 | } |
52 | 52 | ||
53 | struct address_space_operations coda_symlink_aops = { | 53 | const struct address_space_operations coda_symlink_aops = { |
54 | .readpage = coda_symlink_filler, | 54 | .readpage = coda_symlink_filler, |
55 | }; | 55 | }; |
diff --git a/fs/configfs/inode.c b/fs/configfs/inode.c index c153bd9534cb..e14488ca6411 100644 --- a/fs/configfs/inode.c +++ b/fs/configfs/inode.c | |||
@@ -38,7 +38,7 @@ | |||
38 | 38 | ||
39 | extern struct super_block * configfs_sb; | 39 | extern struct super_block * configfs_sb; |
40 | 40 | ||
41 | static struct address_space_operations configfs_aops = { | 41 | static const struct address_space_operations configfs_aops = { |
42 | .readpage = simple_readpage, | 42 | .readpage = simple_readpage, |
43 | .prepare_write = simple_prepare_write, | 43 | .prepare_write = simple_prepare_write, |
44 | .commit_write = simple_commit_write | 44 | .commit_write = simple_commit_write |
diff --git a/fs/cramfs/inode.c b/fs/cramfs/inode.c index c45d73860803..223c0431042d 100644 --- a/fs/cramfs/inode.c +++ b/fs/cramfs/inode.c | |||
@@ -30,7 +30,7 @@ | |||
30 | static struct super_operations cramfs_ops; | 30 | static struct super_operations cramfs_ops; |
31 | static struct inode_operations cramfs_dir_inode_operations; | 31 | static struct inode_operations cramfs_dir_inode_operations; |
32 | static const struct file_operations cramfs_directory_operations; | 32 | static const struct file_operations cramfs_directory_operations; |
33 | static struct address_space_operations cramfs_aops; | 33 | static const struct address_space_operations cramfs_aops; |
34 | 34 | ||
35 | static DEFINE_MUTEX(read_mutex); | 35 | static DEFINE_MUTEX(read_mutex); |
36 | 36 | ||
@@ -501,7 +501,7 @@ static int cramfs_readpage(struct file *file, struct page * page) | |||
501 | return 0; | 501 | return 0; |
502 | } | 502 | } |
503 | 503 | ||
504 | static struct address_space_operations cramfs_aops = { | 504 | static const struct address_space_operations cramfs_aops = { |
505 | .readpage = cramfs_readpage | 505 | .readpage = cramfs_readpage |
506 | }; | 506 | }; |
507 | 507 | ||
diff --git a/fs/efs/inode.c b/fs/efs/inode.c index 180607f9314d..174696f9bf14 100644 --- a/fs/efs/inode.c +++ b/fs/efs/inode.c | |||
@@ -21,7 +21,7 @@ static sector_t _efs_bmap(struct address_space *mapping, sector_t block) | |||
21 | { | 21 | { |
22 | return generic_block_bmap(mapping,block,efs_get_block); | 22 | return generic_block_bmap(mapping,block,efs_get_block); |
23 | } | 23 | } |
24 | static struct address_space_operations efs_aops = { | 24 | static const struct address_space_operations efs_aops = { |
25 | .readpage = efs_readpage, | 25 | .readpage = efs_readpage, |
26 | .sync_page = block_sync_page, | 26 | .sync_page = block_sync_page, |
27 | .bmap = _efs_bmap | 27 | .bmap = _efs_bmap |
diff --git a/fs/efs/symlink.c b/fs/efs/symlink.c index 3d9a350e3e7f..e249cf733a6b 100644 --- a/fs/efs/symlink.c +++ b/fs/efs/symlink.c | |||
@@ -53,6 +53,6 @@ fail: | |||
53 | return err; | 53 | return err; |
54 | } | 54 | } |
55 | 55 | ||
56 | struct address_space_operations efs_symlink_aops = { | 56 | const struct address_space_operations efs_symlink_aops = { |
57 | .readpage = efs_symlink_readpage | 57 | .readpage = efs_symlink_readpage |
58 | }; | 58 | }; |
diff --git a/fs/ext2/ext2.h b/fs/ext2/ext2.h index 9f74a62be555..e65a019fc7a5 100644 --- a/fs/ext2/ext2.h +++ b/fs/ext2/ext2.h | |||
@@ -162,9 +162,9 @@ extern const struct file_operations ext2_file_operations; | |||
162 | extern const struct file_operations ext2_xip_file_operations; | 162 | extern const struct file_operations ext2_xip_file_operations; |
163 | 163 | ||
164 | /* inode.c */ | 164 | /* inode.c */ |
165 | extern struct address_space_operations ext2_aops; | 165 | extern const struct address_space_operations ext2_aops; |
166 | extern struct address_space_operations ext2_aops_xip; | 166 | extern const struct address_space_operations ext2_aops_xip; |
167 | extern struct address_space_operations ext2_nobh_aops; | 167 | extern const struct address_space_operations ext2_nobh_aops; |
168 | 168 | ||
169 | /* namei.c */ | 169 | /* namei.c */ |
170 | extern struct inode_operations ext2_dir_inode_operations; | 170 | extern struct inode_operations ext2_dir_inode_operations; |
diff --git a/fs/ext2/inode.c b/fs/ext2/inode.c index 04af9c45dce2..fb4d3220eb8d 100644 --- a/fs/ext2/inode.c +++ b/fs/ext2/inode.c | |||
@@ -684,7 +684,7 @@ ext2_writepages(struct address_space *mapping, struct writeback_control *wbc) | |||
684 | return mpage_writepages(mapping, wbc, ext2_get_block); | 684 | return mpage_writepages(mapping, wbc, ext2_get_block); |
685 | } | 685 | } |
686 | 686 | ||
687 | struct address_space_operations ext2_aops = { | 687 | const struct address_space_operations ext2_aops = { |
688 | .readpage = ext2_readpage, | 688 | .readpage = ext2_readpage, |
689 | .readpages = ext2_readpages, | 689 | .readpages = ext2_readpages, |
690 | .writepage = ext2_writepage, | 690 | .writepage = ext2_writepage, |
@@ -697,12 +697,12 @@ struct address_space_operations ext2_aops = { | |||
697 | .migratepage = buffer_migrate_page, | 697 | .migratepage = buffer_migrate_page, |
698 | }; | 698 | }; |
699 | 699 | ||
700 | struct address_space_operations ext2_aops_xip = { | 700 | const struct address_space_operations ext2_aops_xip = { |
701 | .bmap = ext2_bmap, | 701 | .bmap = ext2_bmap, |
702 | .get_xip_page = ext2_get_xip_page, | 702 | .get_xip_page = ext2_get_xip_page, |
703 | }; | 703 | }; |
704 | 704 | ||
705 | struct address_space_operations ext2_nobh_aops = { | 705 | const struct address_space_operations ext2_nobh_aops = { |
706 | .readpage = ext2_readpage, | 706 | .readpage = ext2_readpage, |
707 | .readpages = ext2_readpages, | 707 | .readpages = ext2_readpages, |
708 | .writepage = ext2_nobh_writepage, | 708 | .writepage = ext2_nobh_writepage, |
diff --git a/fs/ext3/inode.c b/fs/ext3/inode.c index 0321e1b9034a..f804d5e9d60c 100644 --- a/fs/ext3/inode.c +++ b/fs/ext3/inode.c | |||
@@ -1698,7 +1698,7 @@ static int ext3_journalled_set_page_dirty(struct page *page) | |||
1698 | return __set_page_dirty_nobuffers(page); | 1698 | return __set_page_dirty_nobuffers(page); |
1699 | } | 1699 | } |
1700 | 1700 | ||
1701 | static struct address_space_operations ext3_ordered_aops = { | 1701 | static const struct address_space_operations ext3_ordered_aops = { |
1702 | .readpage = ext3_readpage, | 1702 | .readpage = ext3_readpage, |
1703 | .readpages = ext3_readpages, | 1703 | .readpages = ext3_readpages, |
1704 | .writepage = ext3_ordered_writepage, | 1704 | .writepage = ext3_ordered_writepage, |
@@ -1712,7 +1712,7 @@ static struct address_space_operations ext3_ordered_aops = { | |||
1712 | .migratepage = buffer_migrate_page, | 1712 | .migratepage = buffer_migrate_page, |
1713 | }; | 1713 | }; |
1714 | 1714 | ||
1715 | static struct address_space_operations ext3_writeback_aops = { | 1715 | static const struct address_space_operations ext3_writeback_aops = { |
1716 | .readpage = ext3_readpage, | 1716 | .readpage = ext3_readpage, |
1717 | .readpages = ext3_readpages, | 1717 | .readpages = ext3_readpages, |
1718 | .writepage = ext3_writeback_writepage, | 1718 | .writepage = ext3_writeback_writepage, |
@@ -1726,7 +1726,7 @@ static struct address_space_operations ext3_writeback_aops = { | |||
1726 | .migratepage = buffer_migrate_page, | 1726 | .migratepage = buffer_migrate_page, |
1727 | }; | 1727 | }; |
1728 | 1728 | ||
1729 | static struct address_space_operations ext3_journalled_aops = { | 1729 | static const struct address_space_operations ext3_journalled_aops = { |
1730 | .readpage = ext3_readpage, | 1730 | .readpage = ext3_readpage, |
1731 | .readpages = ext3_readpages, | 1731 | .readpages = ext3_readpages, |
1732 | .writepage = ext3_journalled_writepage, | 1732 | .writepage = ext3_journalled_writepage, |
diff --git a/fs/fat/inode.c b/fs/fat/inode.c index 7c35d582ec10..31b7174176ba 100644 --- a/fs/fat/inode.c +++ b/fs/fat/inode.c | |||
@@ -196,7 +196,7 @@ static sector_t _fat_bmap(struct address_space *mapping, sector_t block) | |||
196 | return generic_block_bmap(mapping, block, fat_get_block); | 196 | return generic_block_bmap(mapping, block, fat_get_block); |
197 | } | 197 | } |
198 | 198 | ||
199 | static struct address_space_operations fat_aops = { | 199 | static const struct address_space_operations fat_aops = { |
200 | .readpage = fat_readpage, | 200 | .readpage = fat_readpage, |
201 | .readpages = fat_readpages, | 201 | .readpages = fat_readpages, |
202 | .writepage = fat_writepage, | 202 | .writepage = fat_writepage, |
diff --git a/fs/freevxfs/vxfs_immed.c b/fs/freevxfs/vxfs_immed.c index 6f5df1700e95..4e25f3fbed86 100644 --- a/fs/freevxfs/vxfs_immed.c +++ b/fs/freevxfs/vxfs_immed.c | |||
@@ -56,7 +56,7 @@ struct inode_operations vxfs_immed_symlink_iops = { | |||
56 | /* | 56 | /* |
57 | * Adress space operations for immed files and directories. | 57 | * Adress space operations for immed files and directories. |
58 | */ | 58 | */ |
59 | struct address_space_operations vxfs_immed_aops = { | 59 | const struct address_space_operations vxfs_immed_aops = { |
60 | .readpage = vxfs_immed_readpage, | 60 | .readpage = vxfs_immed_readpage, |
61 | }; | 61 | }; |
62 | 62 | ||
diff --git a/fs/freevxfs/vxfs_inode.c b/fs/freevxfs/vxfs_inode.c index f544aae9169f..ca6a39714771 100644 --- a/fs/freevxfs/vxfs_inode.c +++ b/fs/freevxfs/vxfs_inode.c | |||
@@ -41,8 +41,8 @@ | |||
41 | #include "vxfs_extern.h" | 41 | #include "vxfs_extern.h" |
42 | 42 | ||
43 | 43 | ||
44 | extern struct address_space_operations vxfs_aops; | 44 | extern const struct address_space_operations vxfs_aops; |
45 | extern struct address_space_operations vxfs_immed_aops; | 45 | extern const struct address_space_operations vxfs_immed_aops; |
46 | 46 | ||
47 | extern struct inode_operations vxfs_immed_symlink_iops; | 47 | extern struct inode_operations vxfs_immed_symlink_iops; |
48 | 48 | ||
@@ -295,7 +295,7 @@ vxfs_read_inode(struct inode *ip) | |||
295 | { | 295 | { |
296 | struct super_block *sbp = ip->i_sb; | 296 | struct super_block *sbp = ip->i_sb; |
297 | struct vxfs_inode_info *vip; | 297 | struct vxfs_inode_info *vip; |
298 | struct address_space_operations *aops; | 298 | const struct address_space_operations *aops; |
299 | ino_t ino = ip->i_ino; | 299 | ino_t ino = ip->i_ino; |
300 | 300 | ||
301 | if (!(vip = __vxfs_iget(ino, VXFS_SBI(sbp)->vsi_ilist))) | 301 | if (!(vip = __vxfs_iget(ino, VXFS_SBI(sbp)->vsi_ilist))) |
diff --git a/fs/freevxfs/vxfs_subr.c b/fs/freevxfs/vxfs_subr.c index c1be118fc067..decac62efe57 100644 --- a/fs/freevxfs/vxfs_subr.c +++ b/fs/freevxfs/vxfs_subr.c | |||
@@ -42,7 +42,7 @@ | |||
42 | static int vxfs_readpage(struct file *, struct page *); | 42 | static int vxfs_readpage(struct file *, struct page *); |
43 | static sector_t vxfs_bmap(struct address_space *, sector_t); | 43 | static sector_t vxfs_bmap(struct address_space *, sector_t); |
44 | 44 | ||
45 | struct address_space_operations vxfs_aops = { | 45 | const struct address_space_operations vxfs_aops = { |
46 | .readpage = vxfs_readpage, | 46 | .readpage = vxfs_readpage, |
47 | .bmap = vxfs_bmap, | 47 | .bmap = vxfs_bmap, |
48 | .sync_page = block_sync_page, | 48 | .sync_page = block_sync_page, |
diff --git a/fs/fuse/file.c b/fs/fuse/file.c index 28aa81eae2cc..63614ed16336 100644 --- a/fs/fuse/file.c +++ b/fs/fuse/file.c | |||
@@ -770,7 +770,7 @@ static const struct file_operations fuse_direct_io_file_operations = { | |||
770 | /* no mmap and sendfile */ | 770 | /* no mmap and sendfile */ |
771 | }; | 771 | }; |
772 | 772 | ||
773 | static struct address_space_operations fuse_file_aops = { | 773 | static const struct address_space_operations fuse_file_aops = { |
774 | .readpage = fuse_readpage, | 774 | .readpage = fuse_readpage, |
775 | .prepare_write = fuse_prepare_write, | 775 | .prepare_write = fuse_prepare_write, |
776 | .commit_write = fuse_commit_write, | 776 | .commit_write = fuse_commit_write, |
diff --git a/fs/hfs/hfs_fs.h b/fs/hfs/hfs_fs.h index 3ed8663a8db1..735332dfd1b8 100644 --- a/fs/hfs/hfs_fs.h +++ b/fs/hfs/hfs_fs.h | |||
@@ -182,8 +182,8 @@ extern void hfs_file_truncate(struct inode *); | |||
182 | extern int hfs_get_block(struct inode *, sector_t, struct buffer_head *, int); | 182 | extern int hfs_get_block(struct inode *, sector_t, struct buffer_head *, int); |
183 | 183 | ||
184 | /* inode.c */ | 184 | /* inode.c */ |
185 | extern struct address_space_operations hfs_aops; | 185 | extern const struct address_space_operations hfs_aops; |
186 | extern struct address_space_operations hfs_btree_aops; | 186 | extern const struct address_space_operations hfs_btree_aops; |
187 | 187 | ||
188 | extern struct inode *hfs_new_inode(struct inode *, struct qstr *, int); | 188 | extern struct inode *hfs_new_inode(struct inode *, struct qstr *, int); |
189 | extern void hfs_inode_write_fork(struct inode *, struct hfs_extent *, __be32 *, __be32 *); | 189 | extern void hfs_inode_write_fork(struct inode *, struct hfs_extent *, __be32 *, __be32 *); |
diff --git a/fs/hfs/inode.c b/fs/hfs/inode.c index 2d4ced22201b..315cf44a90b2 100644 --- a/fs/hfs/inode.c +++ b/fs/hfs/inode.c | |||
@@ -114,7 +114,7 @@ static int hfs_writepages(struct address_space *mapping, | |||
114 | return mpage_writepages(mapping, wbc, hfs_get_block); | 114 | return mpage_writepages(mapping, wbc, hfs_get_block); |
115 | } | 115 | } |
116 | 116 | ||
117 | struct address_space_operations hfs_btree_aops = { | 117 | const struct address_space_operations hfs_btree_aops = { |
118 | .readpage = hfs_readpage, | 118 | .readpage = hfs_readpage, |
119 | .writepage = hfs_writepage, | 119 | .writepage = hfs_writepage, |
120 | .sync_page = block_sync_page, | 120 | .sync_page = block_sync_page, |
@@ -124,7 +124,7 @@ struct address_space_operations hfs_btree_aops = { | |||
124 | .releasepage = hfs_releasepage, | 124 | .releasepage = hfs_releasepage, |
125 | }; | 125 | }; |
126 | 126 | ||
127 | struct address_space_operations hfs_aops = { | 127 | const struct address_space_operations hfs_aops = { |
128 | .readpage = hfs_readpage, | 128 | .readpage = hfs_readpage, |
129 | .writepage = hfs_writepage, | 129 | .writepage = hfs_writepage, |
130 | .sync_page = block_sync_page, | 130 | .sync_page = block_sync_page, |
diff --git a/fs/hfsplus/hfsplus_fs.h b/fs/hfsplus/hfsplus_fs.h index 7ae393637a0c..8a1ca5ef7ada 100644 --- a/fs/hfsplus/hfsplus_fs.h +++ b/fs/hfsplus/hfsplus_fs.h | |||
@@ -323,8 +323,8 @@ int hfsplus_file_extend(struct inode *); | |||
323 | void hfsplus_file_truncate(struct inode *); | 323 | void hfsplus_file_truncate(struct inode *); |
324 | 324 | ||
325 | /* inode.c */ | 325 | /* inode.c */ |
326 | extern struct address_space_operations hfsplus_aops; | 326 | extern const struct address_space_operations hfsplus_aops; |
327 | extern struct address_space_operations hfsplus_btree_aops; | 327 | extern const struct address_space_operations hfsplus_btree_aops; |
328 | 328 | ||
329 | void hfsplus_inode_read_fork(struct inode *, struct hfsplus_fork_raw *); | 329 | void hfsplus_inode_read_fork(struct inode *, struct hfsplus_fork_raw *); |
330 | void hfsplus_inode_write_fork(struct inode *, struct hfsplus_fork_raw *); | 330 | void hfsplus_inode_write_fork(struct inode *, struct hfsplus_fork_raw *); |
diff --git a/fs/hfsplus/inode.c b/fs/hfsplus/inode.c index acf66dba3e01..924ecdef8091 100644 --- a/fs/hfsplus/inode.c +++ b/fs/hfsplus/inode.c | |||
@@ -109,7 +109,7 @@ static int hfsplus_writepages(struct address_space *mapping, | |||
109 | return mpage_writepages(mapping, wbc, hfsplus_get_block); | 109 | return mpage_writepages(mapping, wbc, hfsplus_get_block); |
110 | } | 110 | } |
111 | 111 | ||
112 | struct address_space_operations hfsplus_btree_aops = { | 112 | const struct address_space_operations hfsplus_btree_aops = { |
113 | .readpage = hfsplus_readpage, | 113 | .readpage = hfsplus_readpage, |
114 | .writepage = hfsplus_writepage, | 114 | .writepage = hfsplus_writepage, |
115 | .sync_page = block_sync_page, | 115 | .sync_page = block_sync_page, |
@@ -119,7 +119,7 @@ struct address_space_operations hfsplus_btree_aops = { | |||
119 | .releasepage = hfsplus_releasepage, | 119 | .releasepage = hfsplus_releasepage, |
120 | }; | 120 | }; |
121 | 121 | ||
122 | struct address_space_operations hfsplus_aops = { | 122 | const struct address_space_operations hfsplus_aops = { |
123 | .readpage = hfsplus_readpage, | 123 | .readpage = hfsplus_readpage, |
124 | .writepage = hfsplus_writepage, | 124 | .writepage = hfsplus_writepage, |
125 | .sync_page = block_sync_page, | 125 | .sync_page = block_sync_page, |
diff --git a/fs/hostfs/hostfs_kern.c b/fs/hostfs/hostfs_kern.c index 8e0d37743e7c..b82e3d9c8790 100644 --- a/fs/hostfs/hostfs_kern.c +++ b/fs/hostfs/hostfs_kern.c | |||
@@ -54,7 +54,7 @@ static int append = 0; | |||
54 | 54 | ||
55 | static struct inode_operations hostfs_iops; | 55 | static struct inode_operations hostfs_iops; |
56 | static struct inode_operations hostfs_dir_iops; | 56 | static struct inode_operations hostfs_dir_iops; |
57 | static struct address_space_operations hostfs_link_aops; | 57 | static const struct address_space_operations hostfs_link_aops; |
58 | 58 | ||
59 | #ifndef MODULE | 59 | #ifndef MODULE |
60 | static int __init hostfs_args(char *options, int *add) | 60 | static int __init hostfs_args(char *options, int *add) |
@@ -518,7 +518,7 @@ int hostfs_commit_write(struct file *file, struct page *page, unsigned from, | |||
518 | return(err); | 518 | return(err); |
519 | } | 519 | } |
520 | 520 | ||
521 | static struct address_space_operations hostfs_aops = { | 521 | static const struct address_space_operations hostfs_aops = { |
522 | .writepage = hostfs_writepage, | 522 | .writepage = hostfs_writepage, |
523 | .readpage = hostfs_readpage, | 523 | .readpage = hostfs_readpage, |
524 | .set_page_dirty = __set_page_dirty_nobuffers, | 524 | .set_page_dirty = __set_page_dirty_nobuffers, |
@@ -935,7 +935,7 @@ int hostfs_link_readpage(struct file *file, struct page *page) | |||
935 | return(err); | 935 | return(err); |
936 | } | 936 | } |
937 | 937 | ||
938 | static struct address_space_operations hostfs_link_aops = { | 938 | static const struct address_space_operations hostfs_link_aops = { |
939 | .readpage = hostfs_link_readpage, | 939 | .readpage = hostfs_link_readpage, |
940 | }; | 940 | }; |
941 | 941 | ||
diff --git a/fs/hpfs/file.c b/fs/hpfs/file.c index d3b9fffe45a1..d9eb19b7b8ae 100644 --- a/fs/hpfs/file.c +++ b/fs/hpfs/file.c | |||
@@ -99,7 +99,7 @@ static sector_t _hpfs_bmap(struct address_space *mapping, sector_t block) | |||
99 | { | 99 | { |
100 | return generic_block_bmap(mapping,block,hpfs_get_block); | 100 | return generic_block_bmap(mapping,block,hpfs_get_block); |
101 | } | 101 | } |
102 | struct address_space_operations hpfs_aops = { | 102 | const struct address_space_operations hpfs_aops = { |
103 | .readpage = hpfs_readpage, | 103 | .readpage = hpfs_readpage, |
104 | .writepage = hpfs_writepage, | 104 | .writepage = hpfs_writepage, |
105 | .sync_page = block_sync_page, | 105 | .sync_page = block_sync_page, |
diff --git a/fs/hpfs/hpfs_fn.h b/fs/hpfs/hpfs_fn.h index 29b7a3e55173..f687d54ed442 100644 --- a/fs/hpfs/hpfs_fn.h +++ b/fs/hpfs/hpfs_fn.h | |||
@@ -268,7 +268,7 @@ void hpfs_set_ea(struct inode *, struct fnode *, char *, char *, int); | |||
268 | int hpfs_file_fsync(struct file *, struct dentry *, int); | 268 | int hpfs_file_fsync(struct file *, struct dentry *, int); |
269 | extern const struct file_operations hpfs_file_ops; | 269 | extern const struct file_operations hpfs_file_ops; |
270 | extern struct inode_operations hpfs_file_iops; | 270 | extern struct inode_operations hpfs_file_iops; |
271 | extern struct address_space_operations hpfs_aops; | 271 | extern const struct address_space_operations hpfs_aops; |
272 | 272 | ||
273 | /* inode.c */ | 273 | /* inode.c */ |
274 | 274 | ||
@@ -304,7 +304,7 @@ void hpfs_decide_conv(struct inode *, unsigned char *, unsigned); | |||
304 | /* namei.c */ | 304 | /* namei.c */ |
305 | 305 | ||
306 | extern struct inode_operations hpfs_dir_iops; | 306 | extern struct inode_operations hpfs_dir_iops; |
307 | extern struct address_space_operations hpfs_symlink_aops; | 307 | extern const struct address_space_operations hpfs_symlink_aops; |
308 | 308 | ||
309 | static inline struct hpfs_inode_info *hpfs_i(struct inode *inode) | 309 | static inline struct hpfs_inode_info *hpfs_i(struct inode *inode) |
310 | { | 310 | { |
diff --git a/fs/hpfs/namei.c b/fs/hpfs/namei.c index a03abb12c610..59e7dc182a0c 100644 --- a/fs/hpfs/namei.c +++ b/fs/hpfs/namei.c | |||
@@ -538,7 +538,7 @@ fail: | |||
538 | return err; | 538 | return err; |
539 | } | 539 | } |
540 | 540 | ||
541 | struct address_space_operations hpfs_symlink_aops = { | 541 | const struct address_space_operations hpfs_symlink_aops = { |
542 | .readpage = hpfs_symlink_readpage | 542 | .readpage = hpfs_symlink_readpage |
543 | }; | 543 | }; |
544 | 544 | ||
diff --git a/fs/hugetlbfs/inode.c b/fs/hugetlbfs/inode.c index e6410d8edd0e..6449cb697967 100644 --- a/fs/hugetlbfs/inode.c +++ b/fs/hugetlbfs/inode.c | |||
@@ -34,7 +34,7 @@ | |||
34 | #define HUGETLBFS_MAGIC 0x958458f6 | 34 | #define HUGETLBFS_MAGIC 0x958458f6 |
35 | 35 | ||
36 | static struct super_operations hugetlbfs_ops; | 36 | static struct super_operations hugetlbfs_ops; |
37 | static struct address_space_operations hugetlbfs_aops; | 37 | static const struct address_space_operations hugetlbfs_aops; |
38 | const struct file_operations hugetlbfs_file_operations; | 38 | const struct file_operations hugetlbfs_file_operations; |
39 | static struct inode_operations hugetlbfs_dir_inode_operations; | 39 | static struct inode_operations hugetlbfs_dir_inode_operations; |
40 | static struct inode_operations hugetlbfs_inode_operations; | 40 | static struct inode_operations hugetlbfs_inode_operations; |
@@ -547,7 +547,7 @@ static void hugetlbfs_destroy_inode(struct inode *inode) | |||
547 | kmem_cache_free(hugetlbfs_inode_cachep, HUGETLBFS_I(inode)); | 547 | kmem_cache_free(hugetlbfs_inode_cachep, HUGETLBFS_I(inode)); |
548 | } | 548 | } |
549 | 549 | ||
550 | static struct address_space_operations hugetlbfs_aops = { | 550 | static const struct address_space_operations hugetlbfs_aops = { |
551 | .readpage = hugetlbfs_readpage, | 551 | .readpage = hugetlbfs_readpage, |
552 | .prepare_write = hugetlbfs_prepare_write, | 552 | .prepare_write = hugetlbfs_prepare_write, |
553 | .commit_write = hugetlbfs_commit_write, | 553 | .commit_write = hugetlbfs_commit_write, |
diff --git a/fs/inode.c b/fs/inode.c index 3a2446a27d2c..f42961eb983b 100644 --- a/fs/inode.c +++ b/fs/inode.c | |||
@@ -102,7 +102,7 @@ static kmem_cache_t * inode_cachep __read_mostly; | |||
102 | 102 | ||
103 | static struct inode *alloc_inode(struct super_block *sb) | 103 | static struct inode *alloc_inode(struct super_block *sb) |
104 | { | 104 | { |
105 | static struct address_space_operations empty_aops; | 105 | static const struct address_space_operations empty_aops; |
106 | static struct inode_operations empty_iops; | 106 | static struct inode_operations empty_iops; |
107 | static const struct file_operations empty_fops; | 107 | static const struct file_operations empty_fops; |
108 | struct inode *inode; | 108 | struct inode *inode; |
diff --git a/fs/isofs/compress.c b/fs/isofs/compress.c index 4917315db732..3a39158cca96 100644 --- a/fs/isofs/compress.c +++ b/fs/isofs/compress.c | |||
@@ -312,7 +312,7 @@ eio: | |||
312 | return err; | 312 | return err; |
313 | } | 313 | } |
314 | 314 | ||
315 | struct address_space_operations zisofs_aops = { | 315 | const struct address_space_operations zisofs_aops = { |
316 | .readpage = zisofs_readpage, | 316 | .readpage = zisofs_readpage, |
317 | /* No sync_page operation supported? */ | 317 | /* No sync_page operation supported? */ |
318 | /* No bmap operation supported */ | 318 | /* No bmap operation supported */ |
diff --git a/fs/isofs/inode.c b/fs/isofs/inode.c index 3f9c8ba1fa1f..bb11c7fb4019 100644 --- a/fs/isofs/inode.c +++ b/fs/isofs/inode.c | |||
@@ -1054,7 +1054,7 @@ static sector_t _isofs_bmap(struct address_space *mapping, sector_t block) | |||
1054 | return generic_block_bmap(mapping,block,isofs_get_block); | 1054 | return generic_block_bmap(mapping,block,isofs_get_block); |
1055 | } | 1055 | } |
1056 | 1056 | ||
1057 | static struct address_space_operations isofs_aops = { | 1057 | static const struct address_space_operations isofs_aops = { |
1058 | .readpage = isofs_readpage, | 1058 | .readpage = isofs_readpage, |
1059 | .sync_page = block_sync_page, | 1059 | .sync_page = block_sync_page, |
1060 | .bmap = _isofs_bmap | 1060 | .bmap = _isofs_bmap |
diff --git a/fs/isofs/isofs.h b/fs/isofs/isofs.h index b87ba066f5e7..e6308c8b5735 100644 --- a/fs/isofs/isofs.h +++ b/fs/isofs/isofs.h | |||
@@ -176,5 +176,5 @@ isofs_normalize_block_and_offset(struct iso_directory_record* de, | |||
176 | 176 | ||
177 | extern struct inode_operations isofs_dir_inode_operations; | 177 | extern struct inode_operations isofs_dir_inode_operations; |
178 | extern const struct file_operations isofs_dir_operations; | 178 | extern const struct file_operations isofs_dir_operations; |
179 | extern struct address_space_operations isofs_symlink_aops; | 179 | extern const struct address_space_operations isofs_symlink_aops; |
180 | extern struct export_operations isofs_export_ops; | 180 | extern struct export_operations isofs_export_ops; |
diff --git a/fs/isofs/rock.c b/fs/isofs/rock.c index 4326cb47f8fa..f3a1db3098de 100644 --- a/fs/isofs/rock.c +++ b/fs/isofs/rock.c | |||
@@ -754,6 +754,6 @@ error: | |||
754 | return -EIO; | 754 | return -EIO; |
755 | } | 755 | } |
756 | 756 | ||
757 | struct address_space_operations isofs_symlink_aops = { | 757 | const struct address_space_operations isofs_symlink_aops = { |
758 | .readpage = rock_ridge_symlink_readpage | 758 | .readpage = rock_ridge_symlink_readpage |
759 | }; | 759 | }; |
diff --git a/fs/isofs/zisofs.h b/fs/isofs/zisofs.h index d78485d101c2..273795709155 100644 --- a/fs/isofs/zisofs.h +++ b/fs/isofs/zisofs.h | |||
@@ -15,7 +15,7 @@ | |||
15 | */ | 15 | */ |
16 | 16 | ||
17 | #ifdef CONFIG_ZISOFS | 17 | #ifdef CONFIG_ZISOFS |
18 | extern struct address_space_operations zisofs_aops; | 18 | extern const struct address_space_operations zisofs_aops; |
19 | extern int __init zisofs_init(void); | 19 | extern int __init zisofs_init(void); |
20 | extern void zisofs_cleanup(void); | 20 | extern void zisofs_cleanup(void); |
21 | #endif | 21 | #endif |
diff --git a/fs/jffs/inode-v23.c b/fs/jffs/inode-v23.c index 9e46ea6da752..93068697a9bf 100644 --- a/fs/jffs/inode-v23.c +++ b/fs/jffs/inode-v23.c | |||
@@ -59,7 +59,7 @@ static const struct file_operations jffs_file_operations; | |||
59 | static struct inode_operations jffs_file_inode_operations; | 59 | static struct inode_operations jffs_file_inode_operations; |
60 | static const struct file_operations jffs_dir_operations; | 60 | static const struct file_operations jffs_dir_operations; |
61 | static struct inode_operations jffs_dir_inode_operations; | 61 | static struct inode_operations jffs_dir_inode_operations; |
62 | static struct address_space_operations jffs_address_operations; | 62 | static const struct address_space_operations jffs_address_operations; |
63 | 63 | ||
64 | kmem_cache_t *node_cache = NULL; | 64 | kmem_cache_t *node_cache = NULL; |
65 | kmem_cache_t *fm_cache = NULL; | 65 | kmem_cache_t *fm_cache = NULL; |
@@ -1614,7 +1614,7 @@ jffs_ioctl(struct inode *inode, struct file *filp, unsigned int cmd, | |||
1614 | } /* jffs_ioctl() */ | 1614 | } /* jffs_ioctl() */ |
1615 | 1615 | ||
1616 | 1616 | ||
1617 | static struct address_space_operations jffs_address_operations = { | 1617 | static const struct address_space_operations jffs_address_operations = { |
1618 | .readpage = jffs_readpage, | 1618 | .readpage = jffs_readpage, |
1619 | .prepare_write = jffs_prepare_write, | 1619 | .prepare_write = jffs_prepare_write, |
1620 | .commit_write = jffs_commit_write, | 1620 | .commit_write = jffs_commit_write, |
diff --git a/fs/jffs2/file.c b/fs/jffs2/file.c index bb8844f40e48..3ed6e3e120b6 100644 --- a/fs/jffs2/file.c +++ b/fs/jffs2/file.c | |||
@@ -62,7 +62,7 @@ struct inode_operations jffs2_file_inode_operations = | |||
62 | .removexattr = jffs2_removexattr | 62 | .removexattr = jffs2_removexattr |
63 | }; | 63 | }; |
64 | 64 | ||
65 | struct address_space_operations jffs2_file_address_operations = | 65 | const struct address_space_operations jffs2_file_address_operations = |
66 | { | 66 | { |
67 | .readpage = jffs2_readpage, | 67 | .readpage = jffs2_readpage, |
68 | .prepare_write =jffs2_prepare_write, | 68 | .prepare_write =jffs2_prepare_write, |
diff --git a/fs/jffs2/os-linux.h b/fs/jffs2/os-linux.h index 6b5223565405..9f41fc01a371 100644 --- a/fs/jffs2/os-linux.h +++ b/fs/jffs2/os-linux.h | |||
@@ -158,7 +158,7 @@ extern struct inode_operations jffs2_dir_inode_operations; | |||
158 | /* file.c */ | 158 | /* file.c */ |
159 | extern const struct file_operations jffs2_file_operations; | 159 | extern const struct file_operations jffs2_file_operations; |
160 | extern struct inode_operations jffs2_file_inode_operations; | 160 | extern struct inode_operations jffs2_file_inode_operations; |
161 | extern struct address_space_operations jffs2_file_address_operations; | 161 | extern const struct address_space_operations jffs2_file_address_operations; |
162 | int jffs2_fsync(struct file *, struct dentry *, int); | 162 | int jffs2_fsync(struct file *, struct dentry *, int); |
163 | int jffs2_do_readpage_unlock (struct inode *inode, struct page *pg); | 163 | int jffs2_do_readpage_unlock (struct inode *inode, struct page *pg); |
164 | 164 | ||
diff --git a/fs/jfs/inode.c b/fs/jfs/inode.c index 04eb78f1252e..43e3f566aad6 100644 --- a/fs/jfs/inode.c +++ b/fs/jfs/inode.c | |||
@@ -305,7 +305,7 @@ static ssize_t jfs_direct_IO(int rw, struct kiocb *iocb, | |||
305 | offset, nr_segs, jfs_get_block, NULL); | 305 | offset, nr_segs, jfs_get_block, NULL); |
306 | } | 306 | } |
307 | 307 | ||
308 | struct address_space_operations jfs_aops = { | 308 | const struct address_space_operations jfs_aops = { |
309 | .readpage = jfs_readpage, | 309 | .readpage = jfs_readpage, |
310 | .readpages = jfs_readpages, | 310 | .readpages = jfs_readpages, |
311 | .writepage = jfs_writepage, | 311 | .writepage = jfs_writepage, |
diff --git a/fs/jfs/jfs_inode.h b/fs/jfs/jfs_inode.h index c30072674464..b5c7da6190dc 100644 --- a/fs/jfs/jfs_inode.h +++ b/fs/jfs/jfs_inode.h | |||
@@ -33,7 +33,7 @@ extern void jfs_free_zero_link(struct inode *); | |||
33 | extern struct dentry *jfs_get_parent(struct dentry *dentry); | 33 | extern struct dentry *jfs_get_parent(struct dentry *dentry); |
34 | extern void jfs_set_inode_flags(struct inode *); | 34 | extern void jfs_set_inode_flags(struct inode *); |
35 | 35 | ||
36 | extern struct address_space_operations jfs_aops; | 36 | extern const struct address_space_operations jfs_aops; |
37 | extern struct inode_operations jfs_dir_inode_operations; | 37 | extern struct inode_operations jfs_dir_inode_operations; |
38 | extern const struct file_operations jfs_dir_operations; | 38 | extern const struct file_operations jfs_dir_operations; |
39 | extern struct inode_operations jfs_file_inode_operations; | 39 | extern struct inode_operations jfs_file_inode_operations; |
diff --git a/fs/jfs/jfs_metapage.c b/fs/jfs/jfs_metapage.c index 7f6e88039700..e1e0a6e6ebdf 100644 --- a/fs/jfs/jfs_metapage.c +++ b/fs/jfs/jfs_metapage.c | |||
@@ -577,7 +577,7 @@ static void metapage_invalidatepage(struct page *page, unsigned long offset) | |||
577 | metapage_releasepage(page, 0); | 577 | metapage_releasepage(page, 0); |
578 | } | 578 | } |
579 | 579 | ||
580 | struct address_space_operations jfs_metapage_aops = { | 580 | const struct address_space_operations jfs_metapage_aops = { |
581 | .readpage = metapage_readpage, | 581 | .readpage = metapage_readpage, |
582 | .writepage = metapage_writepage, | 582 | .writepage = metapage_writepage, |
583 | .sync_page = block_sync_page, | 583 | .sync_page = block_sync_page, |
diff --git a/fs/jfs/jfs_metapage.h b/fs/jfs/jfs_metapage.h index f0b7d3282b07..d17a3290f5aa 100644 --- a/fs/jfs/jfs_metapage.h +++ b/fs/jfs/jfs_metapage.h | |||
@@ -139,7 +139,7 @@ static inline void metapage_homeok(struct metapage *mp) | |||
139 | put_metapage(mp); | 139 | put_metapage(mp); |
140 | } | 140 | } |
141 | 141 | ||
142 | extern struct address_space_operations jfs_metapage_aops; | 142 | extern const struct address_space_operations jfs_metapage_aops; |
143 | 143 | ||
144 | /* | 144 | /* |
145 | * This routines invalidate all pages for an extent. | 145 | * This routines invalidate all pages for an extent. |
diff --git a/fs/minix/inode.c b/fs/minix/inode.c index a6fb509b7341..9ea91c5eeb7b 100644 --- a/fs/minix/inode.c +++ b/fs/minix/inode.c | |||
@@ -335,7 +335,7 @@ static sector_t minix_bmap(struct address_space *mapping, sector_t block) | |||
335 | { | 335 | { |
336 | return generic_block_bmap(mapping,block,minix_get_block); | 336 | return generic_block_bmap(mapping,block,minix_get_block); |
337 | } | 337 | } |
338 | static struct address_space_operations minix_aops = { | 338 | static const struct address_space_operations minix_aops = { |
339 | .readpage = minix_readpage, | 339 | .readpage = minix_readpage, |
340 | .writepage = minix_writepage, | 340 | .writepage = minix_writepage, |
341 | .sync_page = block_sync_page, | 341 | .sync_page = block_sync_page, |
diff --git a/fs/ncpfs/inode.c b/fs/ncpfs/inode.c index 90d2ea28f333..6c51c1198464 100644 --- a/fs/ncpfs/inode.c +++ b/fs/ncpfs/inode.c | |||
@@ -105,7 +105,7 @@ static struct super_operations ncp_sops = | |||
105 | 105 | ||
106 | extern struct dentry_operations ncp_root_dentry_operations; | 106 | extern struct dentry_operations ncp_root_dentry_operations; |
107 | #if defined(CONFIG_NCPFS_EXTRAS) || defined(CONFIG_NCPFS_NFS_NS) | 107 | #if defined(CONFIG_NCPFS_EXTRAS) || defined(CONFIG_NCPFS_NFS_NS) |
108 | extern struct address_space_operations ncp_symlink_aops; | 108 | extern const struct address_space_operations ncp_symlink_aops; |
109 | extern int ncp_symlink(struct inode*, struct dentry*, const char*); | 109 | extern int ncp_symlink(struct inode*, struct dentry*, const char*); |
110 | #endif | 110 | #endif |
111 | 111 | ||
diff --git a/fs/ncpfs/symlink.c b/fs/ncpfs/symlink.c index e935f1b34bc2..f76b1392a012 100644 --- a/fs/ncpfs/symlink.c +++ b/fs/ncpfs/symlink.c | |||
@@ -99,7 +99,7 @@ fail: | |||
99 | /* | 99 | /* |
100 | * symlinks can't do much... | 100 | * symlinks can't do much... |
101 | */ | 101 | */ |
102 | struct address_space_operations ncp_symlink_aops = { | 102 | const struct address_space_operations ncp_symlink_aops = { |
103 | .readpage = ncp_symlink_readpage, | 103 | .readpage = ncp_symlink_readpage, |
104 | }; | 104 | }; |
105 | 105 | ||
diff --git a/fs/nfs/file.c b/fs/nfs/file.c index add289138836..cc2b874ad5a4 100644 --- a/fs/nfs/file.c +++ b/fs/nfs/file.c | |||
@@ -315,7 +315,7 @@ static int nfs_release_page(struct page *page, gfp_t gfp) | |||
315 | return !nfs_wb_page(page->mapping->host, page); | 315 | return !nfs_wb_page(page->mapping->host, page); |
316 | } | 316 | } |
317 | 317 | ||
318 | struct address_space_operations nfs_file_aops = { | 318 | const struct address_space_operations nfs_file_aops = { |
319 | .readpage = nfs_readpage, | 319 | .readpage = nfs_readpage, |
320 | .readpages = nfs_readpages, | 320 | .readpages = nfs_readpages, |
321 | .set_page_dirty = __set_page_dirty_nobuffers, | 321 | .set_page_dirty = __set_page_dirty_nobuffers, |
diff --git a/fs/ntfs/aops.c b/fs/ntfs/aops.c index 580412d330cb..bc579bfdfbd8 100644 --- a/fs/ntfs/aops.c +++ b/fs/ntfs/aops.c | |||
@@ -1544,7 +1544,7 @@ err_out: | |||
1544 | /** | 1544 | /** |
1545 | * ntfs_aops - general address space operations for inodes and attributes | 1545 | * ntfs_aops - general address space operations for inodes and attributes |
1546 | */ | 1546 | */ |
1547 | struct address_space_operations ntfs_aops = { | 1547 | const struct address_space_operations ntfs_aops = { |
1548 | .readpage = ntfs_readpage, /* Fill page with data. */ | 1548 | .readpage = ntfs_readpage, /* Fill page with data. */ |
1549 | .sync_page = block_sync_page, /* Currently, just unplugs the | 1549 | .sync_page = block_sync_page, /* Currently, just unplugs the |
1550 | disk request queue. */ | 1550 | disk request queue. */ |
@@ -1560,7 +1560,7 @@ struct address_space_operations ntfs_aops = { | |||
1560 | * ntfs_mst_aops - general address space operations for mst protecteed inodes | 1560 | * ntfs_mst_aops - general address space operations for mst protecteed inodes |
1561 | * and attributes | 1561 | * and attributes |
1562 | */ | 1562 | */ |
1563 | struct address_space_operations ntfs_mst_aops = { | 1563 | const struct address_space_operations ntfs_mst_aops = { |
1564 | .readpage = ntfs_readpage, /* Fill page with data. */ | 1564 | .readpage = ntfs_readpage, /* Fill page with data. */ |
1565 | .sync_page = block_sync_page, /* Currently, just unplugs the | 1565 | .sync_page = block_sync_page, /* Currently, just unplugs the |
1566 | disk request queue. */ | 1566 | disk request queue. */ |
diff --git a/fs/ntfs/ntfs.h b/fs/ntfs/ntfs.h index bf7b3d7c0930..ddd3d503097c 100644 --- a/fs/ntfs/ntfs.h +++ b/fs/ntfs/ntfs.h | |||
@@ -57,8 +57,8 @@ extern struct kmem_cache *ntfs_attr_ctx_cache; | |||
57 | extern struct kmem_cache *ntfs_index_ctx_cache; | 57 | extern struct kmem_cache *ntfs_index_ctx_cache; |
58 | 58 | ||
59 | /* The various operations structs defined throughout the driver files. */ | 59 | /* The various operations structs defined throughout the driver files. */ |
60 | extern struct address_space_operations ntfs_aops; | 60 | extern const struct address_space_operations ntfs_aops; |
61 | extern struct address_space_operations ntfs_mst_aops; | 61 | extern const struct address_space_operations ntfs_mst_aops; |
62 | 62 | ||
63 | extern const struct file_operations ntfs_file_ops; | 63 | extern const struct file_operations ntfs_file_ops; |
64 | extern struct inode_operations ntfs_file_inode_ops; | 64 | extern struct inode_operations ntfs_file_inode_ops; |
diff --git a/fs/ocfs2/aops.c b/fs/ocfs2/aops.c index 47152bf9a7f2..cca71317b6d6 100644 --- a/fs/ocfs2/aops.c +++ b/fs/ocfs2/aops.c | |||
@@ -666,7 +666,7 @@ out: | |||
666 | return ret; | 666 | return ret; |
667 | } | 667 | } |
668 | 668 | ||
669 | struct address_space_operations ocfs2_aops = { | 669 | const struct address_space_operations ocfs2_aops = { |
670 | .readpage = ocfs2_readpage, | 670 | .readpage = ocfs2_readpage, |
671 | .writepage = ocfs2_writepage, | 671 | .writepage = ocfs2_writepage, |
672 | .prepare_write = ocfs2_prepare_write, | 672 | .prepare_write = ocfs2_prepare_write, |
diff --git a/fs/ocfs2/inode.h b/fs/ocfs2/inode.h index 84c507961287..35140f6cf840 100644 --- a/fs/ocfs2/inode.h +++ b/fs/ocfs2/inode.h | |||
@@ -114,7 +114,7 @@ static inline struct ocfs2_inode_info *OCFS2_I(struct inode *inode) | |||
114 | 114 | ||
115 | extern kmem_cache_t *ocfs2_inode_cache; | 115 | extern kmem_cache_t *ocfs2_inode_cache; |
116 | 116 | ||
117 | extern struct address_space_operations ocfs2_aops; | 117 | extern const struct address_space_operations ocfs2_aops; |
118 | 118 | ||
119 | struct buffer_head *ocfs2_bread(struct inode *inode, int block, | 119 | struct buffer_head *ocfs2_bread(struct inode *inode, int block, |
120 | int *err, int reada); | 120 | int *err, int reada); |
diff --git a/fs/qnx4/inode.c b/fs/qnx4/inode.c index 2f24c46f72a1..8bc182a88748 100644 --- a/fs/qnx4/inode.c +++ b/fs/qnx4/inode.c | |||
@@ -450,7 +450,7 @@ static sector_t qnx4_bmap(struct address_space *mapping, sector_t block) | |||
450 | { | 450 | { |
451 | return generic_block_bmap(mapping,block,qnx4_get_block); | 451 | return generic_block_bmap(mapping,block,qnx4_get_block); |
452 | } | 452 | } |
453 | static struct address_space_operations qnx4_aops = { | 453 | static const struct address_space_operations qnx4_aops = { |
454 | .readpage = qnx4_readpage, | 454 | .readpage = qnx4_readpage, |
455 | .writepage = qnx4_writepage, | 455 | .writepage = qnx4_writepage, |
456 | .sync_page = block_sync_page, | 456 | .sync_page = block_sync_page, |
diff --git a/fs/ramfs/file-mmu.c b/fs/ramfs/file-mmu.c index 00a933eb820c..86f14cacf641 100644 --- a/fs/ramfs/file-mmu.c +++ b/fs/ramfs/file-mmu.c | |||
@@ -26,7 +26,7 @@ | |||
26 | 26 | ||
27 | #include <linux/fs.h> | 27 | #include <linux/fs.h> |
28 | 28 | ||
29 | struct address_space_operations ramfs_aops = { | 29 | const struct address_space_operations ramfs_aops = { |
30 | .readpage = simple_readpage, | 30 | .readpage = simple_readpage, |
31 | .prepare_write = simple_prepare_write, | 31 | .prepare_write = simple_prepare_write, |
32 | .commit_write = simple_commit_write | 32 | .commit_write = simple_commit_write |
diff --git a/fs/ramfs/file-nommu.c b/fs/ramfs/file-nommu.c index f443a84b98a5..99fffc9e1bfd 100644 --- a/fs/ramfs/file-nommu.c +++ b/fs/ramfs/file-nommu.c | |||
@@ -27,7 +27,7 @@ | |||
27 | 27 | ||
28 | static int ramfs_nommu_setattr(struct dentry *, struct iattr *); | 28 | static int ramfs_nommu_setattr(struct dentry *, struct iattr *); |
29 | 29 | ||
30 | struct address_space_operations ramfs_aops = { | 30 | const struct address_space_operations ramfs_aops = { |
31 | .readpage = simple_readpage, | 31 | .readpage = simple_readpage, |
32 | .prepare_write = simple_prepare_write, | 32 | .prepare_write = simple_prepare_write, |
33 | .commit_write = simple_commit_write | 33 | .commit_write = simple_commit_write |
diff --git a/fs/ramfs/internal.h b/fs/ramfs/internal.h index 313237631b49..c2bb58e74653 100644 --- a/fs/ramfs/internal.h +++ b/fs/ramfs/internal.h | |||
@@ -10,6 +10,6 @@ | |||
10 | */ | 10 | */ |
11 | 11 | ||
12 | 12 | ||
13 | extern struct address_space_operations ramfs_aops; | 13 | extern const struct address_space_operations ramfs_aops; |
14 | extern const struct file_operations ramfs_file_operations; | 14 | extern const struct file_operations ramfs_file_operations; |
15 | extern struct inode_operations ramfs_file_inode_operations; | 15 | extern struct inode_operations ramfs_file_inode_operations; |
diff --git a/fs/reiserfs/inode.c b/fs/reiserfs/inode.c index 9857e50f85e7..a24858a632fa 100644 --- a/fs/reiserfs/inode.c +++ b/fs/reiserfs/inode.c | |||
@@ -2996,7 +2996,7 @@ int reiserfs_setattr(struct dentry *dentry, struct iattr *attr) | |||
2996 | return error; | 2996 | return error; |
2997 | } | 2997 | } |
2998 | 2998 | ||
2999 | struct address_space_operations reiserfs_address_space_operations = { | 2999 | const struct address_space_operations reiserfs_address_space_operations = { |
3000 | .writepage = reiserfs_writepage, | 3000 | .writepage = reiserfs_writepage, |
3001 | .readpage = reiserfs_readpage, | 3001 | .readpage = reiserfs_readpage, |
3002 | .readpages = reiserfs_readpages, | 3002 | .readpages = reiserfs_readpages, |
diff --git a/fs/romfs/inode.c b/fs/romfs/inode.c index 283fbc6b8eea..22eed61ebf69 100644 --- a/fs/romfs/inode.c +++ b/fs/romfs/inode.c | |||
@@ -459,7 +459,7 @@ err_out: | |||
459 | 459 | ||
460 | /* Mapping from our types to the kernel */ | 460 | /* Mapping from our types to the kernel */ |
461 | 461 | ||
462 | static struct address_space_operations romfs_aops = { | 462 | static const struct address_space_operations romfs_aops = { |
463 | .readpage = romfs_readpage | 463 | .readpage = romfs_readpage |
464 | }; | 464 | }; |
465 | 465 | ||
diff --git a/fs/smbfs/file.c b/fs/smbfs/file.c index ed9a24d19d7d..dae67048baba 100644 --- a/fs/smbfs/file.c +++ b/fs/smbfs/file.c | |||
@@ -306,7 +306,7 @@ static int smb_commit_write(struct file *file, struct page *page, | |||
306 | return status; | 306 | return status; |
307 | } | 307 | } |
308 | 308 | ||
309 | struct address_space_operations smb_file_aops = { | 309 | const struct address_space_operations smb_file_aops = { |
310 | .readpage = smb_readpage, | 310 | .readpage = smb_readpage, |
311 | .writepage = smb_writepage, | 311 | .writepage = smb_writepage, |
312 | .prepare_write = smb_prepare_write, | 312 | .prepare_write = smb_prepare_write, |
diff --git a/fs/smbfs/proto.h b/fs/smbfs/proto.h index 972ed7dad388..34fb462b2379 100644 --- a/fs/smbfs/proto.h +++ b/fs/smbfs/proto.h | |||
@@ -63,7 +63,7 @@ extern int smb_revalidate_inode(struct dentry *dentry); | |||
63 | extern int smb_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat); | 63 | extern int smb_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat); |
64 | extern int smb_notify_change(struct dentry *dentry, struct iattr *attr); | 64 | extern int smb_notify_change(struct dentry *dentry, struct iattr *attr); |
65 | /* file.c */ | 65 | /* file.c */ |
66 | extern struct address_space_operations smb_file_aops; | 66 | extern const struct address_space_operations smb_file_aops; |
67 | extern const struct file_operations smb_file_operations; | 67 | extern const struct file_operations smb_file_operations; |
68 | extern struct inode_operations smb_file_inode_operations; | 68 | extern struct inode_operations smb_file_inode_operations; |
69 | /* ioctl.c */ | 69 | /* ioctl.c */ |
diff --git a/fs/sysfs/inode.c b/fs/sysfs/inode.c index f0b347bd12ca..5e0e31cc46f5 100644 --- a/fs/sysfs/inode.c +++ b/fs/sysfs/inode.c | |||
@@ -16,7 +16,7 @@ | |||
16 | 16 | ||
17 | extern struct super_block * sysfs_sb; | 17 | extern struct super_block * sysfs_sb; |
18 | 18 | ||
19 | static struct address_space_operations sysfs_aops = { | 19 | static const struct address_space_operations sysfs_aops = { |
20 | .readpage = simple_readpage, | 20 | .readpage = simple_readpage, |
21 | .prepare_write = simple_prepare_write, | 21 | .prepare_write = simple_prepare_write, |
22 | .commit_write = simple_commit_write | 22 | .commit_write = simple_commit_write |
diff --git a/fs/sysv/itree.c b/fs/sysv/itree.c index 86f5f8d43d0f..f2bcccd1d6fc 100644 --- a/fs/sysv/itree.c +++ b/fs/sysv/itree.c | |||
@@ -465,7 +465,7 @@ static sector_t sysv_bmap(struct address_space *mapping, sector_t block) | |||
465 | { | 465 | { |
466 | return generic_block_bmap(mapping,block,get_block); | 466 | return generic_block_bmap(mapping,block,get_block); |
467 | } | 467 | } |
468 | struct address_space_operations sysv_aops = { | 468 | const struct address_space_operations sysv_aops = { |
469 | .readpage = sysv_readpage, | 469 | .readpage = sysv_readpage, |
470 | .writepage = sysv_writepage, | 470 | .writepage = sysv_writepage, |
471 | .sync_page = block_sync_page, | 471 | .sync_page = block_sync_page, |
diff --git a/fs/sysv/sysv.h b/fs/sysv/sysv.h index 393a480e4deb..9dcc82120935 100644 --- a/fs/sysv/sysv.h +++ b/fs/sysv/sysv.h | |||
@@ -161,7 +161,7 @@ extern struct inode_operations sysv_dir_inode_operations; | |||
161 | extern struct inode_operations sysv_fast_symlink_inode_operations; | 161 | extern struct inode_operations sysv_fast_symlink_inode_operations; |
162 | extern const struct file_operations sysv_file_operations; | 162 | extern const struct file_operations sysv_file_operations; |
163 | extern const struct file_operations sysv_dir_operations; | 163 | extern const struct file_operations sysv_dir_operations; |
164 | extern struct address_space_operations sysv_aops; | 164 | extern const struct address_space_operations sysv_aops; |
165 | extern struct super_operations sysv_sops; | 165 | extern struct super_operations sysv_sops; |
166 | extern struct dentry_operations sysv_dentry_operations; | 166 | extern struct dentry_operations sysv_dentry_operations; |
167 | 167 | ||
diff --git a/fs/udf/file.c b/fs/udf/file.c index e34b00e303f1..a59e5f33daf6 100644 --- a/fs/udf/file.c +++ b/fs/udf/file.c | |||
@@ -95,7 +95,7 @@ static int udf_adinicb_commit_write(struct file *file, struct page *page, unsign | |||
95 | return 0; | 95 | return 0; |
96 | } | 96 | } |
97 | 97 | ||
98 | struct address_space_operations udf_adinicb_aops = { | 98 | const struct address_space_operations udf_adinicb_aops = { |
99 | .readpage = udf_adinicb_readpage, | 99 | .readpage = udf_adinicb_readpage, |
100 | .writepage = udf_adinicb_writepage, | 100 | .writepage = udf_adinicb_writepage, |
101 | .sync_page = block_sync_page, | 101 | .sync_page = block_sync_page, |
diff --git a/fs/udf/inode.c b/fs/udf/inode.c index 2983afd5e7fd..605f5111b6d8 100644 --- a/fs/udf/inode.c +++ b/fs/udf/inode.c | |||
@@ -132,7 +132,7 @@ static sector_t udf_bmap(struct address_space *mapping, sector_t block) | |||
132 | return generic_block_bmap(mapping,block,udf_get_block); | 132 | return generic_block_bmap(mapping,block,udf_get_block); |
133 | } | 133 | } |
134 | 134 | ||
135 | struct address_space_operations udf_aops = { | 135 | const struct address_space_operations udf_aops = { |
136 | .readpage = udf_readpage, | 136 | .readpage = udf_readpage, |
137 | .writepage = udf_writepage, | 137 | .writepage = udf_writepage, |
138 | .sync_page = block_sync_page, | 138 | .sync_page = block_sync_page, |
diff --git a/fs/udf/symlink.c b/fs/udf/symlink.c index 674bb40edc83..ba068a786563 100644 --- a/fs/udf/symlink.c +++ b/fs/udf/symlink.c | |||
@@ -113,6 +113,6 @@ out: | |||
113 | /* | 113 | /* |
114 | * symlinks can't do much... | 114 | * symlinks can't do much... |
115 | */ | 115 | */ |
116 | struct address_space_operations udf_symlink_aops = { | 116 | const struct address_space_operations udf_symlink_aops = { |
117 | .readpage = udf_symlink_filler, | 117 | .readpage = udf_symlink_filler, |
118 | }; | 118 | }; |
diff --git a/fs/udf/udfdecl.h b/fs/udf/udfdecl.h index 023e19ba5a2e..2f992387cc9e 100644 --- a/fs/udf/udfdecl.h +++ b/fs/udf/udfdecl.h | |||
@@ -47,9 +47,9 @@ extern struct inode_operations udf_dir_inode_operations; | |||
47 | extern const struct file_operations udf_dir_operations; | 47 | extern const struct file_operations udf_dir_operations; |
48 | extern struct inode_operations udf_file_inode_operations; | 48 | extern struct inode_operations udf_file_inode_operations; |
49 | extern const struct file_operations udf_file_operations; | 49 | extern const struct file_operations udf_file_operations; |
50 | extern struct address_space_operations udf_aops; | 50 | extern const struct address_space_operations udf_aops; |
51 | extern struct address_space_operations udf_adinicb_aops; | 51 | extern const struct address_space_operations udf_adinicb_aops; |
52 | extern struct address_space_operations udf_symlink_aops; | 52 | extern const struct address_space_operations udf_symlink_aops; |
53 | 53 | ||
54 | struct udf_fileident_bh | 54 | struct udf_fileident_bh |
55 | { | 55 | { |
diff --git a/fs/ufs/inode.c b/fs/ufs/inode.c index 259bd196099d..8e1f90e42040 100644 --- a/fs/ufs/inode.c +++ b/fs/ufs/inode.c | |||
@@ -574,7 +574,7 @@ static sector_t ufs_bmap(struct address_space *mapping, sector_t block) | |||
574 | { | 574 | { |
575 | return generic_block_bmap(mapping,block,ufs_getfrag_block); | 575 | return generic_block_bmap(mapping,block,ufs_getfrag_block); |
576 | } | 576 | } |
577 | struct address_space_operations ufs_aops = { | 577 | const struct address_space_operations ufs_aops = { |
578 | .readpage = ufs_readpage, | 578 | .readpage = ufs_readpage, |
579 | .writepage = ufs_writepage, | 579 | .writepage = ufs_writepage, |
580 | .sync_page = block_sync_page, | 580 | .sync_page = block_sync_page, |
diff --git a/fs/xfs/linux-2.6/xfs_aops.c b/fs/xfs/linux-2.6/xfs_aops.c index 3e807b828e22..c40f81ba9b13 100644 --- a/fs/xfs/linux-2.6/xfs_aops.c +++ b/fs/xfs/linux-2.6/xfs_aops.c | |||
@@ -1454,7 +1454,7 @@ xfs_vm_invalidatepage( | |||
1454 | block_invalidatepage(page, offset); | 1454 | block_invalidatepage(page, offset); |
1455 | } | 1455 | } |
1456 | 1456 | ||
1457 | struct address_space_operations xfs_address_space_operations = { | 1457 | const struct address_space_operations xfs_address_space_operations = { |
1458 | .readpage = xfs_vm_readpage, | 1458 | .readpage = xfs_vm_readpage, |
1459 | .readpages = xfs_vm_readpages, | 1459 | .readpages = xfs_vm_readpages, |
1460 | .writepage = xfs_vm_writepage, | 1460 | .writepage = xfs_vm_writepage, |
diff --git a/fs/xfs/linux-2.6/xfs_aops.h b/fs/xfs/linux-2.6/xfs_aops.h index 706d8c781b8a..2244e516b66a 100644 --- a/fs/xfs/linux-2.6/xfs_aops.h +++ b/fs/xfs/linux-2.6/xfs_aops.h | |||
@@ -40,7 +40,7 @@ typedef struct xfs_ioend { | |||
40 | struct work_struct io_work; /* xfsdatad work queue */ | 40 | struct work_struct io_work; /* xfsdatad work queue */ |
41 | } xfs_ioend_t; | 41 | } xfs_ioend_t; |
42 | 42 | ||
43 | extern struct address_space_operations xfs_address_space_operations; | 43 | extern const struct address_space_operations xfs_address_space_operations; |
44 | extern int xfs_get_blocks(struct inode *, sector_t, struct buffer_head *, int); | 44 | extern int xfs_get_blocks(struct inode *, sector_t, struct buffer_head *, int); |
45 | 45 | ||
46 | #endif /* __XFS_AOPS_H__ */ | 46 | #endif /* __XFS_AOPS_H__ */ |
diff --git a/fs/xfs/linux-2.6/xfs_buf.c b/fs/xfs/linux-2.6/xfs_buf.c index 26fed0756f01..2af528dcfb04 100644 --- a/fs/xfs/linux-2.6/xfs_buf.c +++ b/fs/xfs/linux-2.6/xfs_buf.c | |||
@@ -1520,7 +1520,7 @@ xfs_mapping_buftarg( | |||
1520 | struct backing_dev_info *bdi; | 1520 | struct backing_dev_info *bdi; |
1521 | struct inode *inode; | 1521 | struct inode *inode; |
1522 | struct address_space *mapping; | 1522 | struct address_space *mapping; |
1523 | static struct address_space_operations mapping_aops = { | 1523 | static const struct address_space_operations mapping_aops = { |
1524 | .sync_page = block_sync_page, | 1524 | .sync_page = block_sync_page, |
1525 | .migratepage = fail_migrate_page, | 1525 | .migratepage = fail_migrate_page, |
1526 | }; | 1526 | }; |