const: mark remaining inode_operations as const

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Alexey Dobriyan
2009-09-21 17:01:11 -07:00
committed by Linus Torvalds
parent 7f09410bbc
commit 6e1d5dcc2b
14 changed files with 30 additions and 30 deletions

View File

@@ -489,7 +489,7 @@ out:
return ret;
}
struct inode_operations omfs_dir_inops = {
const struct inode_operations omfs_dir_inops = {
.lookup = omfs_lookup,
.mkdir = omfs_mkdir,
.rename = omfs_rename,

View File

@@ -333,7 +333,7 @@ struct file_operations omfs_file_operations = {
.splice_read = generic_file_splice_read,
};
struct inode_operations omfs_file_inops = {
const struct inode_operations omfs_file_inops = {
.truncate = omfs_truncate
};

View File

@@ -45,14 +45,14 @@ extern int omfs_clear_range(struct super_block *sb, u64 block, int count);
/* dir.c */
extern struct file_operations omfs_dir_operations;
extern struct inode_operations omfs_dir_inops;
extern const struct inode_operations omfs_dir_inops;
extern int omfs_make_empty(struct inode *inode, struct super_block *sb);
extern int omfs_is_bad(struct omfs_sb_info *sbi, struct omfs_header *header,
u64 fsblock);
/* file.c */
extern struct file_operations omfs_file_operations;
extern struct inode_operations omfs_file_inops;
extern const struct inode_operations omfs_file_inops;
extern const struct address_space_operations omfs_aops;
extern void omfs_make_empty_table(struct buffer_head *bh, int offset);
extern int omfs_shrink_inode(struct inode *inode);