]> git.baikalelectronics.ru Git - kernel.git/commit
UBIFS: fix-up free space earlier
authorBen Gardiner <bengardiner@nanometrics.ca>
Mon, 30 May 2011 18:56:16 +0000 (14:56 -0400)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 3 Jun 2011 15:12:31 +0000 (18:12 +0300)
commit6408b5e26b1b5a531ada80711cce7b5e69309bc1
tree2c4c1e51beee85fba008a81598a58efffa1443d0
parent3905ea00d7c7e85f5a5f1421d45858645495276e
UBIFS: fix-up free space earlier

The free space fixup is currently initiated during mount after the call to
ubifs_write_master() which results in a write to PEBs; this has been observed
with the patch 'assert no fixup when writing a node' applied:

Move the free space fixup on mount to before the calls to
ubifs_recover_inl_heads() and ubifs_write_master(). This results in no
assertions with the previously mentioned patch applied.

Artem: tweaked the patch a bit

Signed-off-by: Ben Gardiner <bengardiner@nanometrics>
Reviewed-by: Matthew L. Creech <mlcreech@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
fs/ubifs/super.c