From: Christoph Hellwig Subject: [PATCH] vxfs: use generic_ro_fops Date: Tue, 1 Nov 2005 00:36:24 +0100 Message-ID: <20051031233624.GB20976@lst.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-fsdevel@vger.kernel.org Return-path: Received: from verein.lst.de ([213.95.11.210]:60326 "EHLO mail.lst.de") by vger.kernel.org with ESMTP id S932555AbVJaXg2 (ORCPT ); Mon, 31 Oct 2005 18:36:28 -0500 To: akpm@osdl.org Content-Disposition: inline Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org dito Signed-off-by: Christoph Hellwig Index: linux-2.6/fs/freevxfs/vxfs_inode.c =================================================================== --- linux-2.6.orig/fs/freevxfs/vxfs_inode.c 2005-10-31 12:23:56.000000000 +0100 +++ linux-2.6/fs/freevxfs/vxfs_inode.c 2005-10-31 15:04:29.000000000 +0100 @@ -46,15 +46,6 @@ 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 @@ 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;