mtd/fs/jffs2 write.c,1.56,1.57
David Woodhouse
dwmw2 at infradead.org
Fri Aug 16 09:28:06 EDT 2002
Update of /home/cvs/mtd/fs/jffs2
In directory phoenix.infradead.org:/tmp/cvs-serv18422
Modified Files:
write.c
Log Message:
Move jffs2_complete_reservation() to after we obsolete the dead dirents,
to avoid triggering wbuf-related sanity checks.
Index: write.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/write.c,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -r1.56 -r1.57
--- write.c 10 Jul 2002 14:05:16 -0000 1.56
+++ write.c 16 Aug 2002 13:28:03 -0000 1.57
@@ -498,7 +498,6 @@
/* File it. This will mark the old one obsolete. */
jffs2_add_fd_to_list(c, fd, &dir_f->dents);
- jffs2_complete_reservation(c);
up(&dir_f->sem);
/* dead_f is NULL if this was a rename not a real unlink */
@@ -528,6 +527,8 @@
/* NB: Caller must set inode nlink if appropriate */
up(&dead_f->sem);
}
+
+ jffs2_complete_reservation(c);
return 0;
}
More information about the linux-mtd-cvs
mailing list