aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/inode.c4
-rw-r--r--include/linux/fs.h1
2 files changed, 4 insertions, 1 deletions
diff --git a/fs/inode.c b/fs/inode.c
index 1f9a3a2b89bc..6d695037a0a3 100644
--- a/fs/inode.c
+++ b/fs/inode.c
@@ -1052,7 +1052,7 @@ static void generic_forget_inode(struct inode *inode)
1052 * inode when the usage count drops to zero, and 1052 * inode when the usage count drops to zero, and
1053 * i_nlink is zero. 1053 * i_nlink is zero.
1054 */ 1054 */
1055static void generic_drop_inode(struct inode *inode) 1055void generic_drop_inode(struct inode *inode)
1056{ 1056{
1057 if (!inode->i_nlink) 1057 if (!inode->i_nlink)
1058 generic_delete_inode(inode); 1058 generic_delete_inode(inode);
@@ -1060,6 +1060,8 @@ static void generic_drop_inode(struct inode *inode)
1060 generic_forget_inode(inode); 1060 generic_forget_inode(inode);
1061} 1061}
1062 1062
1063EXPORT_SYMBOL_GPL(generic_drop_inode);
1064
1063/* 1065/*
1064 * Called when we're dropping the last reference 1066 * Called when we're dropping the last reference
1065 * to an inode. 1067 * to an inode.
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 047bde30836a..302ec20838ca 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -1435,6 +1435,7 @@ extern struct inode * igrab(struct inode *);
1435extern ino_t iunique(struct super_block *, ino_t); 1435extern ino_t iunique(struct super_block *, ino_t);
1436extern int inode_needs_sync(struct inode *inode); 1436extern int inode_needs_sync(struct inode *inode);
1437extern void generic_delete_inode(struct inode *inode); 1437extern void generic_delete_inode(struct inode *inode);
1438extern void generic_drop_inode(struct inode *inode);
1438 1439
1439extern struct inode *ilookup5(struct super_block *sb, unsigned long hashval, 1440extern struct inode *ilookup5(struct super_block *sb, unsigned long hashval,
1440 int (*test)(struct inode *, void *), void *data); 1441 int (*test)(struct inode *, void *), void *data);