jffs_remove calls d_delete(dentry). vfs_unlink then tries to access dentry->d_inode->i_sem
and calls d_delete(dentry).
Suggested patch:
--- inode-v23.c 20 Nov 2002 11:57:45 -0000 1.4
+++ inode-v23.c 20 Nov 2002 19:45:07 -0000
@@ -1063,8 +1063,6 @@
inode->i_ctime = dir->i_ctime;
mark_inode_dirty(inode);
- d_delete(dentry); /* This also frees the inode */
-
result = 0;
jffs_remove_end:
return result;
Can the JFFS guys verify that this doesn't cause a memory leak?
/Mikael
-
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/
This archive was generated by hypermail 2b29 : Sat Nov 23 2002 - 22:00:35 EST