exactly.
> IOW,
> * if we do iput() while we are outside of (success of ->read_super(),
> call of ->put_super()) - we want that inode to be evicted ASAP.
>
> Which is precisely what 2.4.15+patch does.
and it's slower and overlay complex compared to the right fix:
--- 2.4.15aa1/fs/ext2/super.c.~1~ Fri Nov 23 08:21:00 2001
+++ 2.4.15aa1/fs/ext2/super.c Sat Nov 24 07:50:19 2001
@@ -643,6 +643,7 @@
printk(KERN_ERR "EXT2-fs: corrupt root inode, run e2fsck\n");
} else
printk(KERN_ERR "EXT2-fs: get root inode failed\n");
+ invalidate_inodes(sb);
goto failed_mount2;
}
ext2_setup_super (sb, es, sb->s_flags & MS_RDONLY);
Andrea
-
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/