diff options
Diffstat (limited to 'fs/freevxfs')
-rw-r--r-- | fs/freevxfs/vxfs_extern.h | 4 | ||||
-rw-r--r-- | fs/freevxfs/vxfs_inode.c | 11 |
2 files changed, 3 insertions, 12 deletions
diff --git a/fs/freevxfs/vxfs_extern.h b/fs/freevxfs/vxfs_extern.h index d8be917f9797..927acf70c591 100644 --- a/fs/freevxfs/vxfs_extern.h +++ b/fs/freevxfs/vxfs_extern.h | |||
@@ -38,7 +38,7 @@ | |||
38 | */ | 38 | */ |
39 | 39 | ||
40 | 40 | ||
41 | struct kmem_cache_s; | 41 | struct kmem_cache; |
42 | struct super_block; | 42 | struct super_block; |
43 | struct vxfs_inode_info; | 43 | struct vxfs_inode_info; |
44 | struct inode; | 44 | struct inode; |
@@ -51,7 +51,7 @@ extern daddr_t vxfs_bmap1(struct inode *, long); | |||
51 | extern int vxfs_read_fshead(struct super_block *); | 51 | extern int vxfs_read_fshead(struct super_block *); |
52 | 52 | ||
53 | /* vxfs_inode.c */ | 53 | /* vxfs_inode.c */ |
54 | extern struct kmem_cache_s *vxfs_inode_cachep; | 54 | extern struct kmem_cache *vxfs_inode_cachep; |
55 | extern void vxfs_dumpi(struct vxfs_inode_info *, ino_t); | 55 | extern void vxfs_dumpi(struct vxfs_inode_info *, ino_t); |
56 | extern struct inode * vxfs_get_fake_inode(struct super_block *, | 56 | extern struct inode * vxfs_get_fake_inode(struct super_block *, |
57 | struct vxfs_inode_info *); | 57 | struct vxfs_inode_info *); |
diff --git a/fs/freevxfs/vxfs_inode.c b/fs/freevxfs/vxfs_inode.c index 9672d2facffe..f544aae9169f 100644 --- a/fs/freevxfs/vxfs_inode.c +++ b/fs/freevxfs/vxfs_inode.c | |||
@@ -46,15 +46,6 @@ extern struct address_space_operations vxfs_immed_aops; | |||
46 | 46 | ||
47 | extern struct inode_operations vxfs_immed_symlink_iops; | 47 | extern struct inode_operations vxfs_immed_symlink_iops; |
48 | 48 | ||
49 | static struct file_operations vxfs_file_operations = { | ||
50 | .open = generic_file_open, | ||
51 | .llseek = generic_file_llseek, | ||
52 | .read = generic_file_read, | ||
53 | .mmap = generic_file_mmap, | ||
54 | .sendfile = generic_file_sendfile, | ||
55 | }; | ||
56 | |||
57 | |||
58 | kmem_cache_t *vxfs_inode_cachep; | 49 | kmem_cache_t *vxfs_inode_cachep; |
59 | 50 | ||
60 | 51 | ||
@@ -318,7 +309,7 @@ vxfs_read_inode(struct inode *ip) | |||
318 | aops = &vxfs_aops; | 309 | aops = &vxfs_aops; |
319 | 310 | ||
320 | if (S_ISREG(ip->i_mode)) { | 311 | if (S_ISREG(ip->i_mode)) { |
321 | ip->i_fop = &vxfs_file_operations; | 312 | ip->i_fop = &generic_ro_fops; |
322 | ip->i_mapping->a_ops = aops; | 313 | ip->i_mapping->a_ops = aops; |
323 | } else if (S_ISDIR(ip->i_mode)) { | 314 | } else if (S_ISDIR(ip->i_mode)) { |
324 | ip->i_op = &vxfs_dir_inode_ops; | 315 | ip->i_op = &vxfs_dir_inode_ops; |