aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic-2.6/files/fs/yaffs2/yaffs_checkptrw.c
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2008-06-06 12:52:39 +0000
committerGabor Juhos <juhosg@openwrt.org>2008-06-06 12:52:39 +0000
commit477d43b2817c17de1caaedc38e50c3e7235ee585 (patch)
tree8ba415f294639d4cdc93d6fa0902215a61a63d12 /target/linux/generic-2.6/files/fs/yaffs2/yaffs_checkptrw.c
parent306f3677ecbecce777f35bfe3a9475901055dff1 (diff)
downloadupstream-477d43b2817c17de1caaedc38e50c3e7235ee585.tar.gz
upstream-477d43b2817c17de1caaedc38e50c3e7235ee585.tar.bz2
upstream-477d43b2817c17de1caaedc38e50c3e7235ee585.zip
generic-2.6: sync yaffs code with the official CVS tree
SVN-Revision: 11378
Diffstat (limited to 'target/linux/generic-2.6/files/fs/yaffs2/yaffs_checkptrw.c')
-rw-r--r--target/linux/generic-2.6/files/fs/yaffs2/yaffs_checkptrw.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/generic-2.6/files/fs/yaffs2/yaffs_checkptrw.c b/target/linux/generic-2.6/files/fs/yaffs2/yaffs_checkptrw.c
index 933a33fb8b..68e6d0ce5d 100644
--- a/target/linux/generic-2.6/files/fs/yaffs2/yaffs_checkptrw.c
+++ b/target/linux/generic-2.6/files/fs/yaffs2/yaffs_checkptrw.c
@@ -12,11 +12,11 @@
*/
const char *yaffs_checkptrw_c_version =
- "$Id: yaffs_checkptrw.c,v 1.14 2007-05-15 20:07:40 charles Exp $";
+ "$Id: yaffs_checkptrw.c,v 1.16 2008-05-05 07:58:58 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->nDataBytesPerChunk);
+ dev->checkpointBuffer = YMALLOC_DMA(dev->totalBytesPerChunk);
if(!dev->checkpointBuffer)
return 0;