Updated some typos. Nick Bane 23/5/2002
authornick <nick>
Thu, 23 May 2002 18:27:08 +0000 (18:27 +0000)
committernick <nick>
Thu, 23 May 2002 18:27:08 +0000 (18:27 +0000)
yaffs_fs.c

index de113037ddb33ee1bd3ac6beae32a3ce0ee38e3c..125d66913b100b019b15cc7f132b4cda178896e6 100644 (file)
@@ -744,7 +744,8 @@ static struct super_block *yaffs_internal_read_super(int useRam, struct super_bl
 
                // Set up the memory size parameters....
                
-               dev->nBlocks = YAFFS_RAM_EMULATION_SIZE / (YAFFS_CHUNKS_PER_BLOCK * YAFFS_BYTES_PER_CHUNK);
+// NCB         dev->nBlocks = YAFFS_RAM_EMULATION_SIZE / (YAFFS_CHUNKS_PER_BLOCK * YAFFS_BYTES_PER_CHUNK);
+               dev->nBlocks = mtd->size / (YAFFS_CHUNKS_PER_BLOCK * YAFFS_BYTES_PER_CHUNK);
                dev->startBlock = 1;  // Don't use block 0
                dev->endBlock = dev->nBlocks - 1;
 
@@ -876,10 +877,12 @@ static void __exit exit_yaffs_fs(void)
     remove_proc_entry("yaffs",&proc_root);
     
 #ifdef YAFFS_RAM_ENABLED
-       unregister_filesystem(&yaffs_fs_type);
+// NCB unregister_filesystem(&yaffs_fs_type);
+       unregister_filesystem(&yaffs_ram_fs_type);
 #endif
 #ifdef YAFFS_MTD_ENABLED
-       unregister_filesystem(&yaffs_ram_fs_type);
+// NCB unregister_filesystem(&yaffs_ram_fs_type);
+       unregister_filesystem(&yaffs_fs_type);
 #endif
 
 }