]> 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)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Wed, 14 Mar 2012 14:57:00 +0000 (10:57 -0400)
commitb28ad2e06629c67fd699ae3941e99cd9e904aa58
tree3e5b73b0210be1ff5603b58091e3eff266b7db33
parent7d2c745caed47eb6c77238338bc01621f25a820c
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: Paul Gortmaker <paul.gortmaker@windriver.com>
fs/ubifs/debug.c