aboutsummaryrefslogtreecommitdiffstats
path: root/mm/shmem.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/shmem.c')
-rw-r--r--mm/shmem.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/mm/shmem.c b/mm/shmem.c
index b38e17169271..882053031aa0 100644
--- a/mm/shmem.c
+++ b/mm/shmem.c
@@ -178,9 +178,9 @@ static inline void shmem_unacct_blocks(unsigned long flags, long pages)
178static struct super_operations shmem_ops; 178static struct super_operations shmem_ops;
179static const struct address_space_operations shmem_aops; 179static const struct address_space_operations shmem_aops;
180static const struct file_operations shmem_file_operations; 180static const struct file_operations shmem_file_operations;
181static struct inode_operations shmem_inode_operations; 181static const struct inode_operations shmem_inode_operations;
182static struct inode_operations shmem_dir_inode_operations; 182static const struct inode_operations shmem_dir_inode_operations;
183static struct inode_operations shmem_special_inode_operations; 183static const struct inode_operations shmem_special_inode_operations;
184static struct vm_operations_struct shmem_vm_ops; 184static struct vm_operations_struct shmem_vm_ops;
185 185
186static struct backing_dev_info shmem_backing_dev_info __read_mostly = { 186static struct backing_dev_info shmem_backing_dev_info __read_mostly = {
@@ -1410,8 +1410,8 @@ shmem_get_inode(struct super_block *sb, int mode, dev_t dev)
1410} 1410}
1411 1411
1412#ifdef CONFIG_TMPFS 1412#ifdef CONFIG_TMPFS
1413static struct inode_operations shmem_symlink_inode_operations; 1413static const struct inode_operations shmem_symlink_inode_operations;
1414static struct inode_operations shmem_symlink_inline_operations; 1414static const struct inode_operations shmem_symlink_inline_operations;
1415 1415
1416/* 1416/*
1417 * Normally tmpfs makes no use of shmem_prepare_write, but it 1417 * Normally tmpfs makes no use of shmem_prepare_write, but it
@@ -1904,12 +1904,12 @@ static void shmem_put_link(struct dentry *dentry, struct nameidata *nd, void *co
1904 } 1904 }
1905} 1905}
1906 1906
1907static struct inode_operations shmem_symlink_inline_operations = { 1907static const struct inode_operations shmem_symlink_inline_operations = {
1908 .readlink = generic_readlink, 1908 .readlink = generic_readlink,
1909 .follow_link = shmem_follow_link_inline, 1909 .follow_link = shmem_follow_link_inline,
1910}; 1910};
1911 1911
1912static struct inode_operations shmem_symlink_inode_operations = { 1912static const struct inode_operations shmem_symlink_inode_operations = {
1913 .truncate = shmem_truncate, 1913 .truncate = shmem_truncate,
1914 .readlink = generic_readlink, 1914 .readlink = generic_readlink,
1915 .follow_link = shmem_follow_link, 1915 .follow_link = shmem_follow_link,
@@ -2335,7 +2335,7 @@ static const struct file_operations shmem_file_operations = {
2335#endif 2335#endif
2336}; 2336};
2337 2337
2338static struct inode_operations shmem_inode_operations = { 2338static const struct inode_operations shmem_inode_operations = {
2339 .truncate = shmem_truncate, 2339 .truncate = shmem_truncate,
2340 .setattr = shmem_notify_change, 2340 .setattr = shmem_notify_change,
2341 .truncate_range = shmem_truncate_range, 2341 .truncate_range = shmem_truncate_range,
@@ -2349,7 +2349,7 @@ static struct inode_operations shmem_inode_operations = {
2349 2349
2350}; 2350};
2351 2351
2352static struct inode_operations shmem_dir_inode_operations = { 2352static const struct inode_operations shmem_dir_inode_operations = {
2353#ifdef CONFIG_TMPFS 2353#ifdef CONFIG_TMPFS
2354 .create = shmem_create, 2354 .create = shmem_create,
2355 .lookup = simple_lookup, 2355 .lookup = simple_lookup,
@@ -2371,7 +2371,7 @@ static struct inode_operations shmem_dir_inode_operations = {
2371#endif 2371#endif
2372}; 2372};
2373 2373
2374static struct inode_operations shmem_special_inode_operations = { 2374static const struct inode_operations shmem_special_inode_operations = {
2375#ifdef CONFIG_TMPFS_POSIX_ACL 2375#ifdef CONFIG_TMPFS_POSIX_ACL
2376 .setattr = shmem_notify_change, 2376 .setattr = shmem_notify_change,
2377 .setxattr = generic_setxattr, 2377 .setxattr = generic_setxattr,