projects
/
yaffs
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
62a830d
)
Updated some typos. Nick Bane 23/5/2002
author
nick
<nick>
Thu, 23 May 2002 18:27:08 +0000
(18:27 +0000)
committer
nick
<nick>
Thu, 23 May 2002 18:27:08 +0000
(18:27 +0000)
yaffs_fs.c
patch
|
blob
|
history
diff --git
a/yaffs_fs.c
b/yaffs_fs.c
index de113037ddb33ee1bd3ac6beae32a3ce0ee38e3c..125d66913b100b019b15cc7f132b4cda178896e6 100644
(file)
--- a/
yaffs_fs.c
+++ b/
yaffs_fs.c
@@
-744,7
+744,8
@@
static struct super_block *yaffs_internal_read_super(int useRam, struct super_bl
// Set up the memory size parameters....
// 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;
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
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
#endif
#ifdef YAFFS_MTD_ENABLED
- unregister_filesystem(&yaffs_ram_fs_type);
+// NCB unregister_filesystem(&yaffs_ram_fs_type);
+ unregister_filesystem(&yaffs_fs_type);
#endif
}
#endif
}