mtd/drivers/mtd nftlmount.c,1.29,1.30
David Woodhouse
dwmw2 at infradead.org
Tue Oct 8 10:14:35 EDT 2002
Update of /home/cvs/mtd/drivers/mtd
In directory phoenix.infradead.org:/tmp/cvs-serv2080
Modified Files:
nftlmount.c
Log Message:
Fix NFTL oops if no free blocks found at startup
Index: nftlmount.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nftlmount.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- nftlmount.c 13 Sep 2002 14:35:33 -0000 1.29
+++ nftlmount.c 8 Oct 2002 14:14:33 -0000 1.30
@@ -740,7 +740,7 @@
/* second pass to format unreferenced blocks and init free block count */
s->numfreeEUNs = 0;
- s->LastFreeEUN = BLOCK_NIL;
+ s->LastFreeEUN = le16_to_cpu(s->MediaHdr.FirstPhysicalEUN);
for (block = 0; block < s->nb_blocks; block++) {
if (s->ReplUnitTable[block] == BLOCK_NOTEXPLORED) {
More information about the linux-mtd-cvs
mailing list