From: David Woodhouse Date: Wed, 23 Apr 2008 00:17:51 +0000 (+0100) Subject: [JFFS2] Add paranoia debugging for superblock counts X-Git-Tag: v2.6.26-rc1~1069^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85a62db6245a82f07a31b387915ee2180b9ea11a;p=pandora-kernel.git [JFFS2] Add paranoia debugging for superblock counts The problem fixed in commit 014b164e1392a166fe96e003d2f0e7ad2e2a0bb7 (space leak with in-band cleanmarkers) would have been caught a lot quicker if our paranoid debugging mode had included adding up the size counts from all the eraseblocks and comparing the totals with the counts in the superblock. Add that. Make jffs2_mark_erased_block() file the newly-erased block on the free_list before calling the debug function, to make it happy. Signed-off-by: David Woodhouse --- Reading git-diff-tree failed