diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2011-04-20 19:02:45 +0400 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2011-04-20 19:16:37 +0400 |
commit | 8c230d9a5b5ec7970139acb7e2d165d7a3fe9f9e (patch) | |
tree | 734751f33b8a49894df52a5c23bcb39217ba6766 /fs/omfs | |
parent | f0e615c3cb72b42191b558c130409335812621d8 (diff) | |
download | linux-8c230d9a5b5ec7970139acb7e2d165d7a3fe9f9e.tar.xz |
UBIFS: fix false space checking failure
This patch fixes UBIFS mount failure when the debugging support is enabled,
we are recovering from a power cut, we were first mounter R/O and we are
re-mounting R/W. In this case we should not assume that the amount of free
space before we have re-mounted R/W and after are equivalent, because
when we have mounted R/O the file-system is in a non-committed state so
the amount of free space is slightly smaller, due to the fact that we cannot
predict the amount of free space precisely before we commit.
This patch fixes the issue by skipping the debugging check in case of
recovery. This issue was reported by Caizhiyong <caizhiyong@huawei.com>
here: http://thread.gmane.org/gmane.linux.drivers.mtd/34350/focus=34387
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Reported-by: Caizhiyong <caizhiyong@huawei.com>
Cc: stable@kernel.org [2.6.30+]
Diffstat (limited to 'fs/omfs')
0 files changed, 0 insertions, 0 deletions