13#ifndef JFFS2_SUMMARY_H
14#define JFFS2_SUMMARY_H
20#define MAX_SUMMARY_SIZE 65536
23#include <linux/jffs2.h>
25#define BLK_STATE_ALLFF 0
26#define BLK_STATE_CLEAN 1
27#define BLK_STATE_PARTDIRTY 2
28#define BLK_STATE_CLEANMARKER 3
29#define BLK_STATE_ALLDIRTY 4
30#define BLK_STATE_BADBLOCK 5
32#define JFFS2_SUMMARY_NOSUM_SIZE 0xffffffff
33#define JFFS2_SUMMARY_INODE_SIZE (sizeof(struct jffs2_sum_inode_flash))
34#define JFFS2_SUMMARY_DIRENT_SIZE(x) (sizeof(struct jffs2_sum_dirent_flash) + (x))
35#define JFFS2_SUMMARY_XATTR_SIZE (sizeof(struct jffs2_sum_xattr_flash))
36#define JFFS2_SUMMARY_XREF_SIZE (sizeof(struct jffs2_sum_xref_flash))
170#define JFFS2_SUMMARY_FRAME_SIZE (sizeof(struct jffs2_raw_summary) + sizeof(struct jffs2_sum_marker))
172#ifdef CONFIG_JFFS2_SUMMARY
174#define jffs2_sum_active() (1)
181int jffs2_sum_add_kvec(
struct jffs2_sb_info *c,
const struct kvec *invecs,
182 unsigned long count, uint32_t to);
184int jffs2_sum_add_padding_mem(
struct jffs2_summary *s, uint32_t size);
191 uint32_t *pseudo_random);
195#define jffs2_sum_active() (0)
196#define jffs2_sum_init(a) (0)
197#define jffs2_sum_exit(a) do { } while (0)
198#define jffs2_sum_disable_collecting(a)
199#define jffs2_sum_is_disabled(a) (0)
200#define jffs2_sum_reset_collected(a) do { } while (0)
201#define jffs2_sum_add_kvec(a,b,c,d) (0)
202#define jffs2_sum_move_collected(a,b) do { } while (0)
203#define jffs2_sum_write_sumnode(a) (0)
204#define jffs2_sum_add_padding_mem(a,b) do { } while (0)
205#define jffs2_sum_add_inode_mem(a,b,c) do { } while (0)
206#define jffs2_sum_add_dirent_mem(a,b,c) do { } while (0)
207#define jffs2_sum_add_xattr_mem(a,b,c) do { } while (0)
208#define jffs2_sum_add_xref_mem(a,b,c) do { } while (0)
209#define jffs2_sum_scan_sumnode(a,b,c,d,e) (0)
Definition: xnandpsu_onfi.h:181
Definition: nodelist.h:278
Definition: jffs2_fs_sb.h:51
Definition: summary.h:110
Definition: summary.h:100
Definition: summary.h:165
Definition: summary.h:124
Definition: summary.h:134
Definition: summary.h:152
Definition: summary.h:141