All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Export of generic_forget_inode()
@ 2004-12-11 13:36 Kirill Korotaev
  2004-12-11 15:24 ` Christoph Hellwig
  0 siblings, 1 reply; 2+ messages in thread
From: Kirill Korotaev @ 2004-12-11 13:36 UTC (permalink / raw)
  To: linux-kernel, Linus Torvalds

[-- Attachment #1: Type: text/plain, Size: 321 bytes --]

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@sw.ru>

Kirill

[-- Attachment #2: diff-export --]
[-- Type: text/plain, Size: 1137 bytes --]

--- ./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);

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Export of generic_forget_inode()
  2004-12-11 13:36 [PATCH] Export of generic_forget_inode() Kirill Korotaev
@ 2004-12-11 15:24 ` Christoph Hellwig
  0 siblings, 0 replies; 2+ messages in thread
From: Christoph Hellwig @ 2004-12-11 15:24 UTC (permalink / raw)
  To: Kirill Korotaev; +Cc: linux-kernel, Linus Torvalds

On Sat, Dec 11, 2004 at 04:36:01PM +0300, Kirill Korotaev wrote:
> 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.

I don't see that this patch introduces any user for it.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-12-11 15:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-11 13:36 [PATCH] Export of generic_forget_inode() Kirill Korotaev
2004-12-11 15:24 ` Christoph Hellwig

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.