Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dc487002 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Linus Torvalds
Browse files

[PATCH] vxfs: use generic_ro_fops



No need to duplicate a generic readonly file ops table in befs.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 2cf06916
Loading
Loading
Loading
Loading
+1 −10
Original line number Diff line number Diff line
@@ -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;