mtd/fs/jffs2 nodemgmt.c,1.125,1.126
havasi at infradead.org
havasi at infradead.org
Fri Sep 16 08:58:20 EDT 2005
Update of /home/cvs/mtd/fs/jffs2
In directory phoenix.infradead.org:/tmp/cvs-serv8627
Modified Files:
nodemgmt.c
Log Message:
[JFFS2] summary related fix in jffs2_do_reserve_space()
Always keep valid data in reserved_size.
It didn't caused problem only unoptimal working if centralized
summary is used or the size of the erase block was very small.
Index: nodemgmt.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/nodemgmt.c,v
retrieving revision 1.125
retrieving revision 1.126
diff -u -r1.125 -r1.126
--- nodemgmt.c 7 Sep 2005 08:34:54 -0000 1.125
+++ nodemgmt.c 16 Sep 2005 12:58:17 -0000 1.126
@@ -307,6 +307,8 @@
jffs2_close_nextblock(c, jeb);
jeb = NULL;
+ /* keep always valid value in reserved_size */
+ reserved_size = PAD(sumsize + c->summary->sum_size + JFFS2_SUMMARY_FRAME_SIZE);
}
} else {
if (jeb && minsize > jeb->free_size) {
More information about the linux-mtd-cvs
mailing list