]> git.baikalelectronics.ru Git - kernel.git/commit
[JFFS2] Add paranoia debugging for superblock counts
authorDavid Woodhouse <dwmw2@infradead.org>
Wed, 23 Apr 2008 00:17:51 +0000 (01:17 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Wed, 23 Apr 2008 00:24:17 +0000 (01:24 +0100)
commita191ac71c164de4d87f9d144ebb6dc9868680666
tree9de37a0f9267f92aac41e817c5e8fec6887400a1
parentb51267b2cabb90faf95aee51503b276be9082294
[JFFS2] Add paranoia debugging for superblock counts

The problem fixed in commit b51267b2cabb90faf95aee51503b276be9082294
(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 <dwmw2@infradead.org>
fs/jffs2/debug.c
fs/jffs2/erase.c