aboutsummaryrefslogtreecommitdiffstats
path: root/fs/hostfs/hostfs_kern.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/hostfs/hostfs_kern.c')
-rw-r--r--fs/hostfs/hostfs_kern.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/hostfs/hostfs_kern.c b/fs/hostfs/hostfs_kern.c
index 8e0d37743e7c..322e876c35ed 100644
--- a/fs/hostfs/hostfs_kern.c
+++ b/fs/hostfs/hostfs_kern.c
@@ -54,7 +54,7 @@ static int append = 0;
54 54
55static struct inode_operations hostfs_iops; 55static struct inode_operations hostfs_iops;
56static struct inode_operations hostfs_dir_iops; 56static struct inode_operations hostfs_dir_iops;
57static struct address_space_operations hostfs_link_aops; 57static const struct address_space_operations hostfs_link_aops;
58 58
59#ifndef MODULE 59#ifndef MODULE
60static int __init hostfs_args(char *options, int *add) 60static int __init hostfs_args(char *options, int *add)
@@ -156,7 +156,6 @@ static int read_name(struct inode *ino, char *name)
156 ino->i_mode = i_mode; 156 ino->i_mode = i_mode;
157 ino->i_nlink = i_nlink; 157 ino->i_nlink = i_nlink;
158 ino->i_size = i_size; 158 ino->i_size = i_size;
159 ino->i_blksize = i_blksize;
160 ino->i_blocks = i_blocks; 159 ino->i_blocks = i_blocks;
161 return(0); 160 return(0);
162} 161}
@@ -518,7 +517,7 @@ int hostfs_commit_write(struct file *file, struct page *page, unsigned from,
518 return(err); 517 return(err);
519} 518}
520 519
521static struct address_space_operations hostfs_aops = { 520static const struct address_space_operations hostfs_aops = {
522 .writepage = hostfs_writepage, 521 .writepage = hostfs_writepage,
523 .readpage = hostfs_readpage, 522 .readpage = hostfs_readpage,
524 .set_page_dirty = __set_page_dirty_nobuffers, 523 .set_page_dirty = __set_page_dirty_nobuffers,
@@ -935,7 +934,7 @@ int hostfs_link_readpage(struct file *file, struct page *page)
935 return(err); 934 return(err);
936} 935}
937 936
938static struct address_space_operations hostfs_link_aops = { 937static const struct address_space_operations hostfs_link_aops = {
939 .readpage = hostfs_link_readpage, 938 .readpage = hostfs_link_readpage,
940}; 939};
941 940