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/ext3/inode.c | |
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/ext3/inode.c')
-rw-r--r-- | fs/ext3/inode.c | 6 |
1 files changed, 3 insertions, 3 deletions
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, |