mtd/drivers/mtd ftl.c,1.47,1.48

David Woodhouse dwmw2 at infradead.org
Sun May 18 17:52:24 EDT 2003


Update of /home/cvs/mtd/drivers/mtd
In directory phoenix.infradead.org:/tmp/cvs-serv14993

Modified Files:
	ftl.c 
Log Message:
Fix part_bits to match devices.txt, and use it.


Index: ftl.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/ftl.c,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -r1.47 -r1.48
--- ftl.c	18 May 2003 20:57:57 -0000	1.47
+++ ftl.c	18 May 2003 21:52:21 -0000	1.48
@@ -98,8 +98,7 @@
 #define MAX_REGION	4
 
 /* Maximum number of partitions in an FTL region */
-#define PART_BITS	3
-#define MAX_PART	8
+#define PART_BITS	4
 
 /* Maximum number of outstanding erase requests per socket */
 #define MAX_ERASE	8
@@ -1080,7 +1079,7 @@
 		       le32_to_cpu(partition->header.FormattedSize) >> 10);
 #endif
 		partition->mbd.size = le32_to_cpu(partition->header.FormattedSize) >> 9;
-		partition->mbd.blksize = 512;
+		partition->mbd.blksize = SECTOR_SIZE;
 		partition->mbd.tr = tr;
 		partition->mbd.devnum = -1;
 		if (add_mtd_blktrans_dev((void *)partition))
@@ -1099,7 +1098,7 @@
 struct mtd_blktrans_ops ftl_tr = {
 	.name		= "ftl",
 	.major		= FTL_MAJOR,
-	.part_bits	= 4,
+	.part_bits	= PART_BITS,
 	.readsect	= ftl_readsect,
 	.writesect	= ftl_writesect,
 	.ioctl		= ftl_ioctl,




More information about the linux-mtd-cvs mailing list