Skip to contentSkip to conversation

fs/inode.c cleanup: make destroy_inode static

PATCH New Lin Ming 1 participant 1 message Oct 12, 2010 VFS

lore
Share & tools
lore

Lin Ming

author
#0 lore raw

PATCH 1/1 fs/inode.c cleanup: make destroy_inode static

destroy_inode is only used in fs/inode.c

---
 fs/inode.c         |    2 +-
 include/linux/fs.h |    1 -
 2 files changed, 1 insertions(+), 2 deletions(-)
fs/inode.c +1 -1
index 8646433..3368abd 100644
@@ -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 63d069b..2343eaf 100644
@@ -2184,7 +2184,6 @@ extern void unlock_new_inode(struct inode *);
 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 *);
Signature · 1 line
1.7.2.3