Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759623AbYGAVIQ (ORCPT ); Tue, 1 Jul 2008 17:08:16 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755631AbYGAVIB (ORCPT ); Tue, 1 Jul 2008 17:08:01 -0400 Received: from fxip-0047f.externet.hu ([88.209.222.127]:59807 "EHLO pomaz-ex.szeredi.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755367AbYGAVIA (ORCPT ); Tue, 1 Jul 2008 17:08:00 -0400 To: jdike@linux.intel.com CC: akpm@linux-foundation.org, linux-kernel@vger.kernel.org Subject: [patch] hppfs: remove hppfs_permission Message-Id: From: Miklos Szeredi Date: Tue, 01 Jul 2008 23:07:54 +0200 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1348 Lines: 39 From: Miklos Szeredi hppfs_permission() is equivalent to the '.permission == NULL' case. Signed-off-by: Miklos Szeredi --- fs/hppfs/hppfs.c | 7 ------- 1 file changed, 7 deletions(-) Index: linux-2.6/fs/hppfs/hppfs.c =================================================================== --- linux-2.6.orig/fs/hppfs/hppfs.c 2008-06-09 19:16:43.000000000 +0200 +++ linux-2.6/fs/hppfs/hppfs.c 2008-06-09 21:09:56.000000000 +0200 @@ -655,20 +655,13 @@ static void *hppfs_follow_link(struct de return proc_dentry->d_inode->i_op->follow_link(proc_dentry, nd); } -int hppfs_permission(struct inode *inode, int mask, struct nameidata *nd) -{ - return generic_permission(inode, mask, NULL); -} - static const struct inode_operations hppfs_dir_iops = { .lookup = hppfs_lookup, - .permission = hppfs_permission, }; static const struct inode_operations hppfs_link_iops = { .readlink = hppfs_readlink, .follow_link = hppfs_follow_link, - .permission = hppfs_permission, }; static struct inode *get_inode(struct super_block *sb, struct dentry *dentry) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/