The patch titled JFFS2: SUMMARY: fix a summary collecting bug has been removed from the -mm tree. Its filename is jffs2-summary-fix-a-summary-collecting-bug.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ Subject: JFFS2: SUMMARY: fix a summary collecting bug From: Zoltan Sogor <weth@xxxxxxxxxxxxxxx> In some special case (padding because of sync or umount) it can be possible that summary information is not fit to the end of the erase block. In these cases the collecting of summary is disabled for this erase block. The problem was that this was not respected by jffs2_sum_add_kvec(). This patch fix this bug. Signed-off-by: Ferenc Havasi <havasi@xxxxxxxxxxxxxxx> Signed-off-by: David Woodhouse <dwmw2@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- fs/jffs2/summary.c | 5 +++++ 1 file changed, 5 insertions(+) diff -puN fs/jffs2/summary.c~jffs2-summary-fix-a-summary-collecting-bug fs/jffs2/summary.c --- a/fs/jffs2/summary.c~jffs2-summary-fix-a-summary-collecting-bug +++ a/fs/jffs2/summary.c @@ -252,6 +252,11 @@ int jffs2_sum_add_kvec(struct jffs2_sb_i union jffs2_node_union *node; struct jffs2_eraseblock *jeb; + if (c->summary->sum_size == JFFS2_SUMMARY_NOSUM_SIZE) { + dbg_summary("Summary is disabled for this jeb! Skipping summary info!\n"); + return 0; + } + node = invecs[0].iov_base; jeb = &c->blocks[ofs / c->sector_size]; ofs -= jeb->offset; _ Patches currently in -mm which might be from weth@xxxxxxxxxxxxxxx are origin.patch git-mtd.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html