#ifndef JFFS2_SUMMARY_H
#define JFFS2_SUMMARY_H
#define MAX_SUMMARY_SIZE …
#include <linux/uio.h>
#include <linux/jffs2.h>
#define BLK_STATE_ALLFF …
#define BLK_STATE_CLEAN …
#define BLK_STATE_PARTDIRTY …
#define BLK_STATE_CLEANMARKER …
#define BLK_STATE_ALLDIRTY …
#define BLK_STATE_BADBLOCK …
#define JFFS2_SUMMARY_NOSUM_SIZE …
#define JFFS2_SUMMARY_INODE_SIZE …
#define JFFS2_SUMMARY_DIRENT_SIZE(x) …
#define JFFS2_SUMMARY_XATTR_SIZE …
#define JFFS2_SUMMARY_XREF_SIZE …
struct jffs2_sum_unknown_flash
{ … };
struct jffs2_sum_inode_flash
{ … } __attribute__((packed));
struct jffs2_sum_dirent_flash
{ … } __attribute__((packed));
struct jffs2_sum_xattr_flash
{ … } __attribute__((packed));
struct jffs2_sum_xref_flash
{ … } __attribute__((packed));
jffs2_sum_flash;
struct jffs2_sum_unknown_mem
{ … };
struct jffs2_sum_inode_mem
{ … } __attribute__((packed));
struct jffs2_sum_dirent_mem
{ … } __attribute__((packed));
struct jffs2_sum_xattr_mem
{ … } __attribute__((packed));
struct jffs2_sum_xref_mem
{ … } __attribute__((packed));
jffs2_sum_mem;
struct jffs2_summary
{ … };
struct jffs2_sum_marker
{ … };
#define JFFS2_SUMMARY_FRAME_SIZE …
#ifdef CONFIG_JFFS2_SUMMARY
#define jffs2_sum_active() …
int jffs2_sum_init(struct jffs2_sb_info *c);
void jffs2_sum_exit(struct jffs2_sb_info *c);
void jffs2_sum_disable_collecting(struct jffs2_summary *s);
int jffs2_sum_is_disabled(struct jffs2_summary *s);
void jffs2_sum_reset_collected(struct jffs2_summary *s);
void jffs2_sum_move_collected(struct jffs2_sb_info *c, struct jffs2_summary *s);
int jffs2_sum_add_kvec(struct jffs2_sb_info *c, const struct kvec *invecs,
unsigned long count, uint32_t to);
int jffs2_sum_write_sumnode(struct jffs2_sb_info *c);
int jffs2_sum_add_padding_mem(struct jffs2_summary *s, uint32_t size);
int jffs2_sum_add_inode_mem(struct jffs2_summary *s, struct jffs2_raw_inode *ri, uint32_t ofs);
int jffs2_sum_add_dirent_mem(struct jffs2_summary *s, struct jffs2_raw_dirent *rd, uint32_t ofs);
int jffs2_sum_add_xattr_mem(struct jffs2_summary *s, struct jffs2_raw_xattr *rx, uint32_t ofs);
int jffs2_sum_add_xref_mem(struct jffs2_summary *s, struct jffs2_raw_xref *rr, uint32_t ofs);
int jffs2_sum_scan_sumnode(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb,
struct jffs2_raw_summary *summary, uint32_t sumlen,
uint32_t *pseudo_random);
#else
#define jffs2_sum_active …
#define jffs2_sum_init …
#define jffs2_sum_exit …
#define jffs2_sum_disable_collecting …
#define jffs2_sum_is_disabled …
#define jffs2_sum_reset_collected …
#define jffs2_sum_add_kvec …
#define jffs2_sum_move_collected …
#define jffs2_sum_write_sumnode …
#define jffs2_sum_add_padding_mem …
#define jffs2_sum_add_inode_mem …
#define jffs2_sum_add_dirent_mem …
#define jffs2_sum_add_xattr_mem …
#define jffs2_sum_add_xref_mem …
#define jffs2_sum_scan_sumnode …
#endif
#endif