From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: [PATCH] fs: mark destroy_inode static Date: Wed, 6 Oct 2010 10:48:55 +0200 Message-ID: <20101006084855.GA8188@lst.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-fsdevel@vger.kernel.org To: viro@zeniv.linux.org.uk Return-path: Received: from verein.lst.de ([213.95.11.210]:44384 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758740Ab0JFIs4 (ORCPT ); Wed, 6 Oct 2010 04:48:56 -0400 Content-Disposition: inline Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Hugetlbfs used to need it, but after the destroy_inode and evict_inode changes it's not required anymore. Signed-off-by: Christoph Hellwig Index: linux-2.6/fs/inode.c =================================================================== --- linux-2.6.orig/fs/inode.c 2010-09-20 17:28:27.111444173 +0200 +++ linux-2.6/fs/inode.c 2010-09-23 16:37:33.598004286 +0200 @@ -235,7 +235,7 @@ void __destroy_inode(struct inode *inode } EXPORT_SYMBOL(__destroy_inode); -void destroy_inode(struct inode *inode) +static void destroy_inode(struct inode *inode) { __destroy_inode(inode); if (inode->i_sb->s_op->destroy_inode) Index: linux-2.6/include/linux/fs.h =================================================================== --- linux-2.6.orig/include/linux/fs.h 2010-09-23 16:35:05.715259488 +0200 +++ linux-2.6/include/linux/fs.h 2010-09-23 16:37:33.599003936 +0200 @@ -2184,7 +2184,6 @@ extern void unlock_new_inode(struct inod extern void __iget(struct inode * inode); extern void iget_failed(struct inode *); extern void end_writeback(struct inode *); -extern void destroy_inode(struct inode *); extern void __destroy_inode(struct inode *); extern struct inode *new_inode(struct super_block *); extern int should_remove_suid(struct dentry *);