]> git.karo-electronics.de Git - karo-tx-linux.git/commit
UBIFS: fix debugging failure in dbg_check_space_info
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 4 Apr 2011 14:16:39 +0000 (17:16 +0300)
committerAndi Kleen <ak@linux.intel.com>
Thu, 28 Apr 2011 15:20:53 +0000 (08:20 -0700)
commitccc269e534996fa18bb89317a3af3451d94bb78a
tree2304c2d18966850ef6c58cfb39564aa19df8648e
parent6883e53afcda1cc1576f3bbb1e9d6dbe4012db4c
UBIFS: fix debugging failure in dbg_check_space_info

commit 7da6443aca9be29c6948dcbd636ad50154d0bc0c upstream.

This patch fixes a debugging failure with which looks like this:
UBIFS error (pid 32313): dbg_check_space_info: free space changed from 6019344 to 6022654

The reason for this failure is described in the comment this patch adds
to the code. But in short - 'c->freeable_cnt' may be different before
and after re-mounting, and this is normal. So the debugging code should
make sure that free space calculations do not depend on 'c->freeable_cnt'.

A similar issue has been reported here:
http://lists.infradead.org/pipermail/linux-mtd/2011-April/034647.html

This patch should fix it.

For the -stable guys: this patch is only relevant for kernels 2.6.30
onwards.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
fs/ubifs/debug.c