diff options
| -rw-r--r-- | fs/freevxfs/vxfs_inode.c | 11 |
1 files changed, 1 insertions, 10 deletions
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; |
