[PATCH] Export of generic_forget_inode()

From: Kirill Korotaev
Date: Sat Dec 11 2004 - 08:35:09 EST


This patch adds export of generic_forget_inode()

if sb->drop_inode method is set, than it's called in iput_final().
But it's impossible to call neither generic_drop_inode(), nor generic_forget_inode() inside this handler. Only generic_delete_inode() is accessiable.

Signed-Off-By: Kirill Korotaev <dev@xxxxx>

Kirill --- ./fs/inode.c.iexp 2004-12-10 17:42:16.000000000 +0300
+++ ./fs/inode.c 2004-12-11 16:33:35.468308456 +0300
@@ -1032,7 +1032,7 @@ void generic_delete_inode(struct inode *

EXPORT_SYMBOL(generic_delete_inode);

-static void generic_forget_inode(struct inode *inode)
+void generic_forget_inode(struct inode *inode)
{
struct super_block *sb = inode->i_sb;

@@ -1059,6 +1059,8 @@ static void generic_forget_inode(struct
destroy_inode(inode);
}

+EXPORT_SYMBOL(generic_forget_inode);
+
/*
* Normal UNIX filesystem behaviour: delete the
* inode when the usage count drops to zero, and
--- ./include/linux/fs.h.iexp 2004-12-10 17:42:17.000000000 +0300
+++ ./include/linux/fs.h 2004-12-11 16:33:31.541905360 +0300
@@ -1393,6 +1393,7 @@ extern struct inode * igrab(struct inode
extern ino_t iunique(struct super_block *, ino_t);
extern int inode_needs_sync(struct inode *inode);
extern void generic_delete_inode(struct inode *inode);
+extern void generic_forget_inode(struct inode *inode);

extern struct inode *ilookup5(struct super_block *sb, unsigned long hashval,
int (*test)(struct inode *, void *), void *data);