* [PATCH] remove bad inodes from hash table
@ 2002-12-04 1:53 Christoph Hellwig
0 siblings, 0 replies; only message in thread
From: Christoph Hellwig @ 2002-12-04 1:53 UTC (permalink / raw)
To: torvalds, viro; +Cc: linux-fsdevel
When testing the XFS 1.2 release we found a problem that was caused
by inodes made unusable by make_bad_inode() still beeing returned by
iget() and friends. The workaround was to call remove_inode_hash()
before each call to make_bad_inode().
I think the proper fix is to let make_bad_inode() remove the inodes
from the hash chains.
--- 1.7/fs/bad_inode.c Tue Sep 17 21:52:27 2002
+++ edited/fs/bad_inode.c Tue Dec 3 19:20:54 2002
@@ -84,6 +84,8 @@
void make_bad_inode(struct inode * inode)
{
+ remove_inode_hash(inode);
+
inode->i_mode = S_IFREG;
inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME;
inode->i_op = &bad_inode_ops;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-12-04 1:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-04 1:53 [PATCH] remove bad inodes from hash table 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.