This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / fs / jffs2 / dir.c
index 0ec0be3..561e37f 100644 (file)
@@ -7,7 +7,7 @@
  *
  * For licensing information, see the file 'LICENCE' in this directory.
  *
- * $Id: dir.c,v 1.83 2004/10/19 07:48:44 havasi Exp $
+ * $Id: dir.c,v 1.82 2003/10/11 11:47:23 dwmw2 Exp $
  *
  */
 
@@ -217,6 +217,7 @@ static int jffs2_create(struct inode *dir_i, struct dentry *dentry, int mode,
                              dentry->d_name.name, dentry->d_name.len);
 
        if (ret) {
+               jffs2_clear_inode(inode);
                make_bad_inode(inode);
                iput(inode);
                jffs2_free_raw_inode(ri);