[PATCH]: reiser4 [2/8] export generic_forget_inode()

Nikita Danilov (Nikita@Namesys.COM)
Thu, 31 Oct 2002 19:03:01 +0300


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);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/