projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaffs: Add first cut of block summary code
[yaffs2.git]
/
yaffs_guts.h
diff --git
a/yaffs_guts.h
b/yaffs_guts.h
index 551fb7acb178a034b8bd84ed7235f99fe991baa5..631bd65b52b0aba1e1aa36c249d7aca5437ea3e1 100644
(file)
--- a/
yaffs_guts.h
+++ b/
yaffs_guts.h
@@
-78,10
+78,12
@@
#define YAFFS_OBJECTID_UNLINKED 3
#define YAFFS_OBJECTID_DELETED 4
#define YAFFS_OBJECTID_UNLINKED 3
#define YAFFS_OBJECTID_DELETED 4
+/* Fake object Id for summary data */
+#define YAFFS_OBJECTID_SUMMARY 0x10
+
/* Pseudo object ids for checkpointing */
/* Pseudo object ids for checkpointing */
-#define YAFFS_OBJECTID_SB_HEADER 0x10
#define YAFFS_OBJECTID_CHECKPOINT_DATA 0x20
#define YAFFS_OBJECTID_CHECKPOINT_DATA 0x20
-#define YAFFS_SEQUENCE_CHECKPOINT_DATA
0x21
+#define YAFFS_SEQUENCE_CHECKPOINT_DATA 0x21
#define YAFFS_MAX_SHORT_OP_CACHES 20
#define YAFFS_MAX_SHORT_OP_CACHES 20
@@
-729,6
+731,10
@@
struct yaffs_dev {
/* Dirty directory handling */
struct list_head dirty_dirs; /* List of dirty directories */
/* Dirty directory handling */
struct list_head dirty_dirs; /* List of dirty directories */
+ /* Summary */
+ int chunks_per_summary;
+ struct yaffs_summary_tags *sum_tags;
+
/* Statistcs */
u32 n_page_writes;
u32 n_page_reads;
/* Statistcs */
u32 n_page_writes;
u32 n_page_reads;