From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965638AbXBTAQI (ORCPT ); Mon, 19 Feb 2007 19:16:08 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965640AbXBTAPa (ORCPT ); Mon, 19 Feb 2007 19:15:30 -0500 Received: from mailout.stusta.mhn.de ([141.84.69.5]:36105 "EHLO mailhub.stusta.mhn.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S965596AbXBTAHj (ORCPT ); Mon, 19 Feb 2007 19:07:39 -0500 Date: Tue, 20 Feb 2007 01:07:38 +0100 From: Adrian Bunk To: Christoph Hellwig , jack@suse.cz Cc: linux-kernel@vger.kernel.org Subject: [2.6 patch] make remove_inode_dquot_ref() static Message-ID: <20070220000738.GY13958@stusta.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.13 (2006-08-11) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org remove_inode_dquot_ref() can now become static. Signed-off-by: Adrian Bunk --- fs/dquot.c | 3 ++- include/linux/quotaops.h | 3 --- 2 files changed, 2 insertions(+), 4 deletions(-) --- linux-2.6.20-mm2/include/linux/quotaops.h.old 2007-02-18 22:27:48.000000000 +0100 +++ linux-2.6.20-mm2/include/linux/quotaops.h 2007-02-18 22:27:54.000000000 +0100 @@ -37,9 +37,6 @@ extern int dquot_commit_info(struct super_block *sb, int type); extern int dquot_mark_dquot_dirty(struct dquot *dquot); -int remove_inode_dquot_ref(struct inode *inode, int type, - struct list_head *tofree_head); - extern int vfs_quota_on(struct super_block *sb, int type, int format_id, char *path); extern int vfs_quota_on_mount(struct super_block *sb, char *qf_name, int format_id, int type); --- linux-2.6.20-mm2/fs/dquot.c.old 2007-02-18 22:28:03.000000000 +0100 +++ linux-2.6.20-mm2/fs/dquot.c 2007-02-18 22:28:16.000000000 +0100 @@ -721,7 +721,8 @@ /* Remove references to dquots from inode - add dquot to list for freeing if needed */ /* We can't race with anybody because we hold dqptr_sem for writing... */ -int remove_inode_dquot_ref(struct inode *inode, int type, struct list_head *tofree_head) +static int remove_inode_dquot_ref(struct inode *inode, int type, + struct list_head *tofree_head) { struct dquot *dquot = inode->i_dquot[type];