diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2009-01-15 10:43:23 -0500 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2009-01-18 07:05:08 -0500 |
commit | e8b815663b1bfd9c255af5176604ec0eafdf6ed7 (patch) | |
tree | 63eea164bed606905200177f18391238102bda40 /fs/ubifs | |
parent | dedb0d48a9d4d57086526b94a4b64da789a646e4 (diff) |
UBIFS: constify operations
Mark super, file, and inode operation structcutes with 'const'.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'fs/ubifs')
-rw-r--r-- | fs/ubifs/dir.c | 4 | ||||
-rw-r--r-- | fs/ubifs/file.c | 8 | ||||
-rw-r--r-- | fs/ubifs/super.c | 2 | ||||
-rw-r--r-- | fs/ubifs/ubifs.h | 14 |
4 files changed, 14 insertions, 14 deletions
diff --git a/fs/ubifs/dir.c b/fs/ubifs/dir.c index f448ab1f9c38..d29b771cce45 100644 --- a/fs/ubifs/dir.c +++ b/fs/ubifs/dir.c | |||
@@ -1199,7 +1199,7 @@ int ubifs_getattr(struct vfsmount *mnt, struct dentry *dentry, | |||
1199 | return 0; | 1199 | return 0; |
1200 | } | 1200 | } |
1201 | 1201 | ||
1202 | struct inode_operations ubifs_dir_inode_operations = { | 1202 | const struct inode_operations ubifs_dir_inode_operations = { |
1203 | .lookup = ubifs_lookup, | 1203 | .lookup = ubifs_lookup, |
1204 | .create = ubifs_create, | 1204 | .create = ubifs_create, |
1205 | .link = ubifs_link, | 1205 | .link = ubifs_link, |
@@ -1219,7 +1219,7 @@ struct inode_operations ubifs_dir_inode_operations = { | |||
1219 | #endif | 1219 | #endif |
1220 | }; | 1220 | }; |
1221 | 1221 | ||
1222 | struct file_operations ubifs_dir_operations = { | 1222 | const struct file_operations ubifs_dir_operations = { |
1223 | .llseek = ubifs_dir_llseek, | 1223 | .llseek = ubifs_dir_llseek, |
1224 | .release = ubifs_dir_release, | 1224 | .release = ubifs_dir_release, |
1225 | .read = generic_read_dir, | 1225 | .read = generic_read_dir, |
diff --git a/fs/ubifs/file.c b/fs/ubifs/file.c index bf37374567fa..17443d97e6f1 100644 --- a/fs/ubifs/file.c +++ b/fs/ubifs/file.c | |||
@@ -1541,7 +1541,7 @@ static int ubifs_file_mmap(struct file *file, struct vm_area_struct *vma) | |||
1541 | return 0; | 1541 | return 0; |
1542 | } | 1542 | } |
1543 | 1543 | ||
1544 | struct address_space_operations ubifs_file_address_operations = { | 1544 | const struct address_space_operations ubifs_file_address_operations = { |
1545 | .readpage = ubifs_readpage, | 1545 | .readpage = ubifs_readpage, |
1546 | .writepage = ubifs_writepage, | 1546 | .writepage = ubifs_writepage, |
1547 | .write_begin = ubifs_write_begin, | 1547 | .write_begin = ubifs_write_begin, |
@@ -1551,7 +1551,7 @@ struct address_space_operations ubifs_file_address_operations = { | |||
1551 | .releasepage = ubifs_releasepage, | 1551 | .releasepage = ubifs_releasepage, |
1552 | }; | 1552 | }; |
1553 | 1553 | ||
1554 | struct inode_operations ubifs_file_inode_operations = { | 1554 | const struct inode_operations ubifs_file_inode_operations = { |
1555 | .setattr = ubifs_setattr, | 1555 | .setattr = ubifs_setattr, |
1556 | .getattr = ubifs_getattr, | 1556 | .getattr = ubifs_getattr, |
1557 | #ifdef CONFIG_UBIFS_FS_XATTR | 1557 | #ifdef CONFIG_UBIFS_FS_XATTR |
@@ -1562,14 +1562,14 @@ struct inode_operations ubifs_file_inode_operations = { | |||
1562 | #endif | 1562 | #endif |
1563 | }; | 1563 | }; |
1564 | 1564 | ||
1565 | struct inode_operations ubifs_symlink_inode_operations = { | 1565 | const struct inode_operations ubifs_symlink_inode_operations = { |
1566 | .readlink = generic_readlink, | 1566 | .readlink = generic_readlink, |
1567 | .follow_link = ubifs_follow_link, | 1567 | .follow_link = ubifs_follow_link, |
1568 | .setattr = ubifs_setattr, | 1568 | .setattr = ubifs_setattr, |
1569 | .getattr = ubifs_getattr, | 1569 | .getattr = ubifs_getattr, |
1570 | }; | 1570 | }; |
1571 | 1571 | ||
1572 | struct file_operations ubifs_file_operations = { | 1572 | const struct file_operations ubifs_file_operations = { |
1573 | .llseek = generic_file_llseek, | 1573 | .llseek = generic_file_llseek, |
1574 | .read = do_sync_read, | 1574 | .read = do_sync_read, |
1575 | .write = do_sync_write, | 1575 | .write = do_sync_write, |
diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c index a7fc97f4d9de..53811e567a69 100644 --- a/fs/ubifs/super.c +++ b/fs/ubifs/super.c | |||
@@ -1778,7 +1778,7 @@ static int ubifs_remount_fs(struct super_block *sb, int *flags, char *data) | |||
1778 | return 0; | 1778 | return 0; |
1779 | } | 1779 | } |
1780 | 1780 | ||
1781 | struct super_operations ubifs_super_operations = { | 1781 | const struct super_operations ubifs_super_operations = { |
1782 | .alloc_inode = ubifs_alloc_inode, | 1782 | .alloc_inode = ubifs_alloc_inode, |
1783 | .destroy_inode = ubifs_destroy_inode, | 1783 | .destroy_inode = ubifs_destroy_inode, |
1784 | .put_super = ubifs_put_super, | 1784 | .put_super = ubifs_put_super, |
diff --git a/fs/ubifs/ubifs.h b/fs/ubifs/ubifs.h index fc2a4cc66d03..0881897a4208 100644 --- a/fs/ubifs/ubifs.h +++ b/fs/ubifs/ubifs.h | |||
@@ -1405,13 +1405,13 @@ extern struct list_head ubifs_infos; | |||
1405 | extern spinlock_t ubifs_infos_lock; | 1405 | extern spinlock_t ubifs_infos_lock; |
1406 | extern atomic_long_t ubifs_clean_zn_cnt; | 1406 | extern atomic_long_t ubifs_clean_zn_cnt; |
1407 | extern struct kmem_cache *ubifs_inode_slab; | 1407 | extern struct kmem_cache *ubifs_inode_slab; |
1408 | extern struct super_operations ubifs_super_operations; | 1408 | extern const struct super_operations ubifs_super_operations; |
1409 | extern struct address_space_operations ubifs_file_address_operations; | 1409 | extern const struct address_space_operations ubifs_file_address_operations; |
1410 | extern struct file_operations ubifs_file_operations; | 1410 | extern const struct file_operations ubifs_file_operations; |
1411 | extern struct inode_operations ubifs_file_inode_operations; | 1411 | extern const struct inode_operations ubifs_file_inode_operations; |
1412 | extern struct file_operations ubifs_dir_operations; | 1412 | extern const struct file_operations ubifs_dir_operations; |
1413 | extern struct inode_operations ubifs_dir_inode_operations; | 1413 | extern const struct inode_operations ubifs_dir_inode_operations; |
1414 | extern struct inode_operations ubifs_symlink_inode_operations; | 1414 | extern const struct inode_operations ubifs_symlink_inode_operations; |
1415 | extern struct backing_dev_info ubifs_backing_dev_info; | 1415 | extern struct backing_dev_info ubifs_backing_dev_info; |
1416 | extern struct ubifs_compressor *ubifs_compressors[UBIFS_COMPR_TYPES_CNT]; | 1416 | extern struct ubifs_compressor *ubifs_compressors[UBIFS_COMPR_TYPES_CNT]; |
1417 | 1417 | ||