Skip to contentSkip to conversation

fs: mark destroy_inode static

PATCH New Christoph Hellwig 1 participant 1 message Oct 6, 2010 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs: mark destroy_inode static

Hugetlbfs used to need it, but after the destroy_inode and evict_inode changes it's not required anymore.

fs/inode.c +1 -1
Index: linux-2.6/fs/inode.c
===================================================================
@@ -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)
include/linux/fs.h +0 -1
Index: linux-2.6/include/linux/fs.h
===================================================================
@@ -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 *);