diff options
author | Helge Deller <deller@gmx.de> | 2006-12-06 23:40:36 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-07 11:39:46 -0500 |
commit | 15ad7cdcfd76450d4beebc789ec646664238184d (patch) | |
tree | 279d05a76ae0906c23ee2de8c5684d95d9886ad3 /mm/shmem.c | |
parent | 4a08a9f68168e547c2baf100020e9b96cae5fbd1 (diff) |
[PATCH] struct seq_operations and struct file_operations constification
- move some file_operations structs into the .rodata section
- move static strings from policy_types[] array into the .rodata section
- fix generic seq_operations usages, so that those structs may be defined
as "const" as well
[akpm@osdl.org: couple of fixes]
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm/shmem.c')
-rw-r--r-- | mm/shmem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/shmem.c b/mm/shmem.c index 007653680a75..c820b4f77b8d 100644 --- a/mm/shmem.c +++ b/mm/shmem.c | |||
@@ -177,7 +177,7 @@ static inline void shmem_unacct_blocks(unsigned long flags, long pages) | |||
177 | 177 | ||
178 | static struct super_operations shmem_ops; | 178 | static struct super_operations shmem_ops; |
179 | static const struct address_space_operations shmem_aops; | 179 | static const struct address_space_operations shmem_aops; |
180 | static struct file_operations shmem_file_operations; | 180 | static const struct file_operations shmem_file_operations; |
181 | static struct inode_operations shmem_inode_operations; | 181 | static struct inode_operations shmem_inode_operations; |
182 | static struct inode_operations shmem_dir_inode_operations; | 182 | static struct inode_operations shmem_dir_inode_operations; |
183 | static struct inode_operations shmem_special_inode_operations; | 183 | static struct inode_operations shmem_special_inode_operations; |
@@ -2319,7 +2319,7 @@ static const struct address_space_operations shmem_aops = { | |||
2319 | .migratepage = migrate_page, | 2319 | .migratepage = migrate_page, |
2320 | }; | 2320 | }; |
2321 | 2321 | ||
2322 | static struct file_operations shmem_file_operations = { | 2322 | static const struct file_operations shmem_file_operations = { |
2323 | .mmap = shmem_mmap, | 2323 | .mmap = shmem_mmap, |
2324 | #ifdef CONFIG_TMPFS | 2324 | #ifdef CONFIG_TMPFS |
2325 | .llseek = generic_file_llseek, | 2325 | .llseek = generic_file_llseek, |