projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add an image maker tool that generates image files for 2k page * 64 devices
[yaffs2.git]
/
patches
/
yaffs_mtdif2.c
diff --git
a/patches/yaffs_mtdif2.c
b/patches/yaffs_mtdif2.c
index 19677ad47afd524d93a7be86f913a3b75da3ff94..c817a3ad32a33c39d0fb6cdf5f207d742fdf1ed0 100644
(file)
--- a/
patches/yaffs_mtdif2.c
+++ b/
patches/yaffs_mtdif2.c
@@
-1,8
+1,7
@@
/*
* YAFFS: Yet another FFS. A NAND-flash specific file system.
*
/*
* YAFFS: Yet another FFS. A NAND-flash specific file system.
*
- * Copyright (C) 2002-2010 Aleph One Ltd.
- * for Toby Churchill Ltd and Brightstar Engineering
+ * Copyright (C) 2002-2018 Aleph One Ltd.
*
* Created by Charles Manning <charles@aleph1.co.uk>
*
*
* Created by Charles Manning <charles@aleph1.co.uk>
*
@@
-48,7
+47,7
@@
void nandmtd2_pt2buf(struct yaffs_dev *dev, yaffs_PackedTags2 *pt, int is_raw)
if (n == 0) {
T(YAFFS_TRACE_ERROR, (TSTR("No OOB space for tags" TENDSTR)));
if (n == 0) {
T(YAFFS_TRACE_ERROR, (TSTR("No OOB space for tags" TENDSTR)));
-
Y
BUG();
+ BUG();
}
for (i = 0; i < sizeof(yaffs_PackedTags2); i++) {
}
for (i = 0; i < sizeof(yaffs_PackedTags2); i++) {
@@
-58,7
+57,7
@@
void nandmtd2_pt2buf(struct yaffs_dev *dev, yaffs_PackedTags2 *pt, int is_raw)
n = mtd->oobinfo.oobfree[j][1];
if (n == 0) {
T(YAFFS_TRACE_ERROR, (TSTR("No OOB space for tags" TENDSTR)));
n = mtd->oobinfo.oobfree[j][1];
if (n == 0) {
T(YAFFS_TRACE_ERROR, (TSTR("No OOB space for tags" TENDSTR)));
-
Y
BUG();
+ BUG();
}
}
dev->spareBuffer[k] = ptab[i];
}
}
dev->spareBuffer[k] = ptab[i];
@@
-86,7
+85,7
@@
void nandmtd2_buf2pt(struct yaffs_dev *dev, yaffs_PackedTags2 *pt, int is_raw)
if (n == 0) {
T(YAFFS_TRACE_ERROR, (TSTR("No space in OOB for tags" TENDSTR)));
if (n == 0) {
T(YAFFS_TRACE_ERROR, (TSTR("No space in OOB for tags" TENDSTR)));
-
Y
BUG();
+ BUG();
}
for (i = 0; i < sizeof(yaffs_PackedTags2); i++) {
}
for (i = 0; i < sizeof(yaffs_PackedTags2); i++) {
@@
-96,7
+95,7
@@
void nandmtd2_buf2pt(struct yaffs_dev *dev, yaffs_PackedTags2 *pt, int is_raw)
n = mtd->oobinfo.oobfree[j][1];
if (n == 0) {
T(YAFFS_TRACE_ERROR, (TSTR("No space in OOB for tags" TENDSTR)));
n = mtd->oobinfo.oobfree[j][1];
if (n == 0) {
T(YAFFS_TRACE_ERROR, (TSTR("No space in OOB for tags" TENDSTR)));
-
Y
BUG();
+ BUG();
}
}
ptab[i] = dev->spareBuffer[k];
}
}
ptab[i] = dev->spareBuffer[k];
@@
-140,7
+139,7
@@
int nandmtd2_WriteChunkWithTagsToNAND(struct yaffs_dev * dev, int nand_chunk,
T(YAFFS_TRACE_ALWAYS,
(TSTR
("Write chunk with null tags or data!" TENDSTR)));
T(YAFFS_TRACE_ALWAYS,
(TSTR
("Write chunk with null tags or data!" TENDSTR)));
-
Y
BUG();
+ BUG();
}
if (retval == 0)
}
if (retval == 0)