Lines Matching refs:sum_size
28 uint32_t sum_size = min_t(uint32_t, c->sector_size, MAX_SUMMARY_SIZE); in jffs2_sum_init() local
37 c->summary->sum_buf = kmalloc(sum_size, GFP_KERNEL); in jffs2_sum_init()
73 s->sum_size += JFFS2_SUMMARY_INODE_SIZE; in jffs2_sum_add_mem()
79 s->sum_size += JFFS2_SUMMARY_DIRENT_SIZE(item->d.nsize); in jffs2_sum_add_mem()
86 s->sum_size += JFFS2_SUMMARY_XATTR_SIZE; in jffs2_sum_add_mem()
92 s->sum_size += JFFS2_SUMMARY_XREF_SIZE; in jffs2_sum_add_mem()
214 s->sum_size = 0; in jffs2_sum_reset_collected()
221 s->sum_size = JFFS2_SUMMARY_NOSUM_SIZE; in jffs2_sum_disable_collecting()
226 return (s->sum_size == JFFS2_SUMMARY_NOSUM_SIZE); in jffs2_sum_is_disabled()
234 c->summary->sum_size, c->summary->sum_num, in jffs2_sum_move_collected()
235 s->sum_size, s->sum_num); in jffs2_sum_move_collected()
237 c->summary->sum_size = s->sum_size; in jffs2_sum_move_collected()
254 if (c->summary->sum_size == JFFS2_SUMMARY_NOSUM_SIZE) { in jffs2_sum_add_kvec()
835 c->summary->sum_size = JFFS2_SUMMARY_NOSUM_SIZE; in jffs2_sum_write_data()
868 datasize = c->summary->sum_size + sizeof(struct jffs2_sum_marker); in jffs2_sum_write_sumnode()