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:

committed by
Linus Torvalds

parent
7f09410bbc
commit
6e1d5dcc2b
@@ -448,7 +448,7 @@ out:
|
||||
return err;
|
||||
}
|
||||
|
||||
struct inode_operations nilfs_dir_inode_operations = {
|
||||
const struct inode_operations nilfs_dir_inode_operations = {
|
||||
.create = nilfs_create,
|
||||
.lookup = nilfs_lookup,
|
||||
.link = nilfs_link,
|
||||
@@ -462,12 +462,12 @@ struct inode_operations nilfs_dir_inode_operations = {
|
||||
.permission = nilfs_permission,
|
||||
};
|
||||
|
||||
struct inode_operations nilfs_special_inode_operations = {
|
||||
const struct inode_operations nilfs_special_inode_operations = {
|
||||
.setattr = nilfs_setattr,
|
||||
.permission = nilfs_permission,
|
||||
};
|
||||
|
||||
struct inode_operations nilfs_symlink_inode_operations = {
|
||||
const struct inode_operations nilfs_symlink_inode_operations = {
|
||||
.readlink = generic_readlink,
|
||||
.follow_link = page_follow_link_light,
|
||||
.put_link = page_put_link,
|
||||
|
Reference in New Issue
Block a user