From: Arve Hjønnevåg Date: Thu, 17 Sep 2009 21:52:42 +0000 (-0700) Subject: yaffs: Don't update page read and write counts from yaffs_mtdif2. X-Git-Tag: firefly_0821_release~11692 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4698f1ee43795d9b4b2c6a91c84e000c9bfee21b;p=firefly-linux-kernel-4.4.55.git 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 --- diff --git a/fs/yaffs2/yaffs_mtdif2.c b/fs/yaffs2/yaffs_mtdif2.c index bd8128c06f05..282a093d854d 100644 --- a/fs/yaffs2/yaffs_mtdif2.c +++ b/fs/yaffs2/yaffs_mtdif2.c @@ -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) {