The patch titled
export generic_drop_inode() to modules
has been added to the -mm tree. Its filename is
export-generic_drop_inode.patch
Patches currently in -mm which might be from [EMAIL PROTECTED] are
export-generic_drop_inode.patch
ocfs2-avoid-lookup_hash-usage-in-configfs.patch
From: Mark Fasheh <[EMAIL PROTECTED]>
OCFS2 wants to mark an inode which has been orphaned by another node so
that during final iput it takes the correct path through the VFS and can
pass through the OCFS2 delete_inode callback. Since i_nlink can get out of
date with other nodes, the best way I see to accomplish this is by clearing
i_nlink on those inodes at drop_inode time. Other than this small amount
of work, nothing different needs to happen, so I think it would be cleanest
to be able to just call generic_drop_inode at the end of the OCFS2
drop_inode callback.
Signed-off-by: Mark Fasheh <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---
fs/inode.c | 4 +++-
include/linux/fs.h | 1 +
2 files changed, 4 insertions(+), 1 deletion(-)
diff -puN fs/inode.c~export-generic_drop_inode fs/inode.c
--- devel/fs/inode.c~export-generic_drop_inode 2005-07-07 15:50:15.000000000
-0700
+++ devel-akpm/fs/inode.c 2005-07-07 15:50:15.000000000 -0700
@@ -1052,7 +1052,7 @@ static void generic_forget_inode(struct
* inode when the usage count drops to zero, and
* i_nlink is zero.
*/
-static void generic_drop_inode(struct inode *inode)
+void generic_drop_inode(struct inode *inode)
{
if (!inode->i_nlink)
generic_delete_inode(inode);
@@ -1060,6 +1060,8 @@ static void generic_drop_inode(struct in
generic_forget_inode(inode);
}
+EXPORT_SYMBOL_GPL(generic_drop_inode);
+
/*
* Called when we're dropping the last reference
* to an inode.
diff -puN include/linux/fs.h~export-generic_drop_inode include/linux/fs.h
--- devel/include/linux/fs.h~export-generic_drop_inode 2005-07-07
15:50:15.000000000 -0700
+++ devel-akpm/include/linux/fs.h 2005-07-07 15:50:15.000000000 -0700
@@ -1435,6 +1435,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_drop_inode(struct inode *inode);
extern struct inode *ilookup5(struct super_block *sb, unsigned long hashval,
int (*test)(struct inode *, void *), void *data);
_
-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html