diff options
author | Christoph Hellwig <hch@lst.de> | 2005-11-07 00:59:45 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-07 07:53:41 -0800 |
commit | dc487002a26a5733967292356434e61dc5da9c98 (patch) | |
tree | 284026fb9581da012df1627a701c7c94a708d669 | |
parent | 2cf06916217b5dcb2cc52a495e1f130cc8434ef5 (diff) | |
download | kernel_samsung_smdk4412-dc487002a26a5733967292356434e61dc5da9c98.tar.gz kernel_samsung_smdk4412-dc487002a26a5733967292356434e61dc5da9c98.tar.bz2 kernel_samsung_smdk4412-dc487002a26a5733967292356434e61dc5da9c98.zip |
[PATCH] vxfs: use generic_ro_fops
No need to duplicate a generic readonly file ops table in befs.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-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 9672d2facff..f544aae9169 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; 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; @@ -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; |