mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
yaffs: Don't update page read and write counts from yaffs_mtdif2.
These counters are now updated from yaffs_nand. Signed-off-by: Arve Hjønnevåg <arve@android.com>
This commit is contained in:
@@ -52,8 +52,6 @@ int nandmtd2_WriteChunkWithTagsToNAND(yaffs_Device *dev, int chunkInNAND,
|
||||
("nandmtd2_WriteChunkWithTagsToNAND chunk %d data %p tags %p"
|
||||
TENDSTR), chunkInNAND, data, tags));
|
||||
|
||||
dev->nPageWrites++;
|
||||
|
||||
addr = ((loff_t) chunkInNAND) * dev->totalBytesPerChunk;
|
||||
|
||||
/* For yaffs2 writing there must be both data and tags.
|
||||
@@ -116,8 +114,6 @@ int nandmtd2_ReadChunkWithTagsFromNAND(yaffs_Device *dev, int chunkInNAND,
|
||||
("nandmtd2_ReadChunkWithTagsFromNAND chunk %d data %p tags %p"
|
||||
TENDSTR), chunkInNAND, data, tags));
|
||||
|
||||
dev->nPageReads++;
|
||||
|
||||
if (dev->inbandTags) {
|
||||
|
||||
if (!data) {
|
||||
|
||||
Reference in New Issue
Block a user