mtd/fs/jffs2 write.c,1.71,1.72
David Woodhouse
dwmw2 at infradead.org
Fri Oct 3 12:24:56 EDT 2003
Update of /home/cvs/mtd/fs/jffs2
In directory phoenix.infradead.org:/tmp/cvs-serv3684
Modified Files:
write.c
Log Message:
Relock f->sem after retry allocation.
Index: write.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/write.c,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -r1.71 -r1.72
--- write.c 3 Oct 2003 15:33:59 -0000 1.71
+++ write.c 3 Oct 2003 16:24:53 -0000 1.72
@@ -176,6 +176,7 @@
jffs2_complete_reservation(c);
ret = jffs2_reserve_space(c, sizeof(*ri) + datalen, &flash_ofs, &dummy, alloc_mode);
+ down(&f->sem);
}
if (!ret) {
@@ -296,6 +297,7 @@
jffs2_complete_reservation(c);
ret = jffs2_reserve_space(c, sizeof(*rd) + namelen, &flash_ofs, &dummy, alloc_mode);
+ down(&f->sem);
}
if (!ret) {
More information about the linux-mtd-cvs
mailing list