Revert "yaffs: Update stats when using mtdif2."
[firefly-linux-kernel-4.4.55.git] / fs / yaffs2 / yaffs_mtdif1.c
index bcac47025ece1362ad5ec0157ad9aaf0a10f49e9..1d9311ae011e297012348505995b9cd22399dfca 100644 (file)
@@ -102,6 +102,8 @@ int nandmtd1_WriteChunkWithTagsToNAND(yaffs_Device *dev,
        compile_time_assertion(sizeof(yaffs_PackedTags1) == 12);
        compile_time_assertion(sizeof(yaffs_Tags) == 8);
 
+       dev->nPageWrites++;
+
        yaffs_PackTags1(&pt1, etags);
        yaffs_CalcTagsECC((yaffs_Tags *)&pt1);
 
@@ -178,6 +180,8 @@ int nandmtd1_ReadChunkWithTagsFromNAND(yaffs_Device *dev,
        int retval;
        int deleted;
 
+       dev->nPageReads++;
+
        memset(&ops, 0, sizeof(ops));
        ops.mode = MTD_OOB_AUTO;
        ops.len = (data) ? chunkBytes : 0;