Artem Bityutskiy c1f1f91d21 UBIFS: fix inode size debugging check failure
This patch fixes a problem with the following symptoms:

UBIFS: deferred recovery completed
UBIFS error (pid 15676): dbg_check_synced_i_size: ui_size is 11481088, synced_i_size is 11459081, but inode is clean
UBIFS error (pid 15676): dbg_check_synced_i_size: i_ino 128, i_mode 0x81a4, i_size 11481088

It happens when additional debugging checks are enabled and we are recovering
from a power cut. When we fixup corrupted inode size during recovery, we change
them in-place and we change ui_size as well, but not synced_i_size, which
causes this failure. This patch makes sure we change both fields and fixes the
issue.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2011-05-13 19:23:57 +03:00
..
2008-12-31 14:13:24 +02:00
2011-05-13 19:23:55 +03:00
2011-05-13 19:23:55 +03:00
2011-05-13 19:23:53 +03:00
2011-04-05 10:45:45 +03:00
2011-03-24 16:14:26 +02:00
2011-05-13 19:23:54 +03:00
2011-05-13 19:23:53 +03:00
2010-09-19 21:07:58 +03:00
2011-02-06 15:08:02 +02:00
2008-09-30 11:12:57 +03:00
2011-05-13 19:23:53 +03:00