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/file.c | |
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/file.c')
-rw-r--r-- | fs/ubifs/file.c | 8 |
1 files changed, 4 insertions, 4 deletions
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, |