mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH]: reiser4 [2/8] export generic_forget_inode()
@ 2002-10-31 16:03 Nikita Danilov
  0 siblings, 0 replies; only message in thread
From: Nikita Danilov @ 2002-10-31 16:03 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Linux Kernel Mailing List, Reiserfs mail-list

Hello, Linus,

    Following patch exports fs/inode.c:generic_forget_inode(). 

    Without this, file system that needs ->drop_inode() super block method
    would have to duplicate manipulations with &inode_unused, inodes_stat, and
    &inode_lock.

Please apply.
Nikita.
diff -rup -X dontdiff linus-bk-2.5/fs/inode.c linux-2.5-reiser4/fs/inode.c
--- linus-bk-2.5/fs/inode.c	Tue Oct 15 20:56:58 2002
+++ linux-2.5-reiser4/fs/inode.c	Mon Oct 21 13:43:49 2002
@@ -938,7 +938,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;
 
@@ -965,6 +965,7 @@ static void generic_forget_inode(struct 
 	clear_inode(inode);
 	destroy_inode(inode);
 }
+EXPORT_SYMBOL(generic_forget_inode);
 
 /*
  * Normal UNIX filesystem behaviour: delete the
diff -rup -X dontdiff linus-bk-2.5/include/linux/fs.h linux-2.5-reiser4/include/linux/fs.h
--- linus-bk-2.5/include/linux/fs.h	Sat Oct 19 03:01:12 2002
+++ linux-2.5-reiser4/include/linux/fs.h	Tue Oct 29 12:41:00 2002
@@ -1200,7 +1200,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);
 extern struct inode *ilookup(struct super_block *sb, unsigned long ino);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-10-31 16:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-31 16:03 [PATCH]: reiser4 [2/8] export generic_forget_inode() Nikita Danilov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®