Skip to content

Commit

Permalink
[PATCH] vxfs: use generic_ro_fops
Browse files Browse the repository at this point in the history
No need to duplicate a generic readonly file ops table in befs.

Signed-off-by: Christoph Hellwig <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Christoph Hellwig authored and Linus Torvalds committed Nov 7, 2005
1 parent 2cf0691 commit dc48700
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions fs/freevxfs/vxfs_inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,6 @@ extern struct address_space_operations vxfs_immed_aops;

extern struct inode_operations vxfs_immed_symlink_iops;

static struct file_operations vxfs_file_operations = {
.open = generic_file_open,
.llseek = generic_file_llseek,
.read = generic_file_read,
.mmap = generic_file_mmap,
.sendfile = generic_file_sendfile,
};


kmem_cache_t *vxfs_inode_cachep;


Expand Down Expand Up @@ -318,7 +309,7 @@ vxfs_read_inode(struct inode *ip)
aops = &vxfs_aops;

if (S_ISREG(ip->i_mode)) {
ip->i_fop = &vxfs_file_operations;
ip->i_fop = &generic_ro_fops;
ip->i_mapping->a_ops = aops;
} else if (S_ISDIR(ip->i_mode)) {
ip->i_op = &vxfs_dir_inode_ops;
Expand Down

0 comments on commit dc48700

Please sign in to comment.