diff options
Diffstat (limited to 'fs/hpfs')
-rw-r--r-- | fs/hpfs/file.c | 2 | ||||
-rw-r--r-- | fs/hpfs/hpfs_fn.h | 4 | ||||
-rw-r--r-- | fs/hpfs/namei.c | 2 | ||||
-rw-r--r-- | fs/hpfs/super.c | 10 |
4 files changed, 10 insertions, 8 deletions
diff --git a/fs/hpfs/file.c b/fs/hpfs/file.c index d3b9fffe45a1..d9eb19b7b8ae 100644 --- a/fs/hpfs/file.c +++ b/fs/hpfs/file.c | |||
@@ -99,7 +99,7 @@ static sector_t _hpfs_bmap(struct address_space *mapping, sector_t block) | |||
99 | { | 99 | { |
100 | return generic_block_bmap(mapping,block,hpfs_get_block); | 100 | return generic_block_bmap(mapping,block,hpfs_get_block); |
101 | } | 101 | } |
102 | struct address_space_operations hpfs_aops = { | 102 | const struct address_space_operations hpfs_aops = { |
103 | .readpage = hpfs_readpage, | 103 | .readpage = hpfs_readpage, |
104 | .writepage = hpfs_writepage, | 104 | .writepage = hpfs_writepage, |
105 | .sync_page = block_sync_page, | 105 | .sync_page = block_sync_page, |
diff --git a/fs/hpfs/hpfs_fn.h b/fs/hpfs/hpfs_fn.h index 29b7a3e55173..f687d54ed442 100644 --- a/fs/hpfs/hpfs_fn.h +++ b/fs/hpfs/hpfs_fn.h | |||
@@ -268,7 +268,7 @@ void hpfs_set_ea(struct inode *, struct fnode *, char *, char *, int); | |||
268 | int hpfs_file_fsync(struct file *, struct dentry *, int); | 268 | int hpfs_file_fsync(struct file *, struct dentry *, int); |
269 | extern const struct file_operations hpfs_file_ops; | 269 | extern const struct file_operations hpfs_file_ops; |
270 | extern struct inode_operations hpfs_file_iops; | 270 | extern struct inode_operations hpfs_file_iops; |
271 | extern struct address_space_operations hpfs_aops; | 271 | extern const struct address_space_operations hpfs_aops; |
272 | 272 | ||
273 | /* inode.c */ | 273 | /* inode.c */ |
274 | 274 | ||
@@ -304,7 +304,7 @@ void hpfs_decide_conv(struct inode *, unsigned char *, unsigned); | |||
304 | /* namei.c */ | 304 | /* namei.c */ |
305 | 305 | ||
306 | extern struct inode_operations hpfs_dir_iops; | 306 | extern struct inode_operations hpfs_dir_iops; |
307 | extern struct address_space_operations hpfs_symlink_aops; | 307 | extern const struct address_space_operations hpfs_symlink_aops; |
308 | 308 | ||
309 | static inline struct hpfs_inode_info *hpfs_i(struct inode *inode) | 309 | static inline struct hpfs_inode_info *hpfs_i(struct inode *inode) |
310 | { | 310 | { |
diff --git a/fs/hpfs/namei.c b/fs/hpfs/namei.c index a03abb12c610..59e7dc182a0c 100644 --- a/fs/hpfs/namei.c +++ b/fs/hpfs/namei.c | |||
@@ -538,7 +538,7 @@ fail: | |||
538 | return err; | 538 | return err; |
539 | } | 539 | } |
540 | 540 | ||
541 | struct address_space_operations hpfs_symlink_aops = { | 541 | const struct address_space_operations hpfs_symlink_aops = { |
542 | .readpage = hpfs_symlink_readpage | 542 | .readpage = hpfs_symlink_readpage |
543 | }; | 543 | }; |
544 | 544 | ||
diff --git a/fs/hpfs/super.c b/fs/hpfs/super.c index d72d8c87c996..f798480a363f 100644 --- a/fs/hpfs/super.c +++ b/fs/hpfs/super.c | |||
@@ -135,8 +135,9 @@ static unsigned count_bitmaps(struct super_block *s) | |||
135 | return count; | 135 | return count; |
136 | } | 136 | } |
137 | 137 | ||
138 | static int hpfs_statfs(struct super_block *s, struct kstatfs *buf) | 138 | static int hpfs_statfs(struct dentry *dentry, struct kstatfs *buf) |
139 | { | 139 | { |
140 | struct super_block *s = dentry->d_sb; | ||
140 | struct hpfs_sb_info *sbi = hpfs_sb(s); | 141 | struct hpfs_sb_info *sbi = hpfs_sb(s); |
141 | lock_kernel(); | 142 | lock_kernel(); |
142 | 143 | ||
@@ -662,10 +663,11 @@ bail0: | |||
662 | return -EINVAL; | 663 | return -EINVAL; |
663 | } | 664 | } |
664 | 665 | ||
665 | static struct super_block *hpfs_get_sb(struct file_system_type *fs_type, | 666 | static int hpfs_get_sb(struct file_system_type *fs_type, |
666 | int flags, const char *dev_name, void *data) | 667 | int flags, const char *dev_name, void *data, struct vfsmount *mnt) |
667 | { | 668 | { |
668 | return get_sb_bdev(fs_type, flags, dev_name, data, hpfs_fill_super); | 669 | return get_sb_bdev(fs_type, flags, dev_name, data, hpfs_fill_super, |
670 | mnt); | ||
669 | } | 671 | } |
670 | 672 | ||
671 | static struct file_system_type hpfs_fs_type = { | 673 | static struct file_system_type hpfs_fs_type = { |