summaryrefslogtreecommitdiffstats
path: root/target/linux/generic-2.6/files-2.6.25/fs/yaffs2/yaffs_checkptrw.c
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2008-06-10 08:20:19 +0000
committerGabor Juhos <juhosg@openwrt.org>2008-06-10 08:20:19 +0000
commit306910e5d18ea19b4c10df06defaa494733def60 (patch)
treef917170f40440cca92bd47afe27d78859725a5c9 /target/linux/generic-2.6/files-2.6.25/fs/yaffs2/yaffs_checkptrw.c
parentc9d9f8045c5aebdfeb96d7f9833927751d854bc1 (diff)
downloadmaster-31e0f0ae-306910e5d18ea19b4c10df06defaa494733def60.tar.gz
master-31e0f0ae-306910e5d18ea19b4c10df06defaa494733def60.tar.bz2
master-31e0f0ae-306910e5d18ea19b4c10df06defaa494733def60.zip
generic-2.6: revert yaffs changes [11378], the new code is not working correctly on RouterBoards
SVN-Revision: 11427
Diffstat (limited to 'target/linux/generic-2.6/files-2.6.25/fs/yaffs2/yaffs_checkptrw.c')
-rw-r--r--target/linux/generic-2.6/files-2.6.25/fs/yaffs2/yaffs_checkptrw.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/generic-2.6/files-2.6.25/fs/yaffs2/yaffs_checkptrw.c b/target/linux/generic-2.6/files-2.6.25/fs/yaffs2/yaffs_checkptrw.c
index 68e6d0ce5d..933a33fb8b 100644
--- a/target/linux/generic-2.6/files-2.6.25/fs/yaffs2/yaffs_checkptrw.c
+++ b/target/linux/generic-2.6/files-2.6.25/fs/yaffs2/yaffs_checkptrw.c
@@ -12,11 +12,11 @@
*/
const char *yaffs_checkptrw_c_version =
- "$Id: yaffs_checkptrw.c,v 1.16 2008-05-05 07:58:58 charles Exp $";
+ "$Id: yaffs_checkptrw.c,v 1.14 2007-05-15 20:07:40 charles Exp $";
#include "yaffs_checkptrw.h"
-#include "yaffs_getblockinfo.h"
+
static int yaffs_CheckpointSpaceOk(yaffs_Device *dev)
{
@@ -142,7 +142,7 @@ int yaffs_CheckpointOpen(yaffs_Device *dev, int forWriting)
return 0;
if(!dev->checkpointBuffer)
- dev->checkpointBuffer = YMALLOC_DMA(dev->totalBytesPerChunk);
+ dev->checkpointBuffer = YMALLOC_DMA(dev->nDataBytesPerChunk);
if(!dev->checkpointBuffer)
return 0;