UBIFS: fix-up free space on mount if flag is set
authorMatthew L. Creech <mlcreech@gmail.com>
Fri, 6 May 2011 22:58:23 +0000 (18:58 -0400)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 16 May 2011 11:12:15 +0000 (14:12 +0300)
commit9d510db423303b4f3555074dd7bdd0d692e432a4
treee05516d94fe62492e41b7ccc219db8abfe1c6ab8
parent6554a6578131a217d4ea6d779a62f120081a2e8b
UBIFS: fix-up free space on mount if flag is set

If a UBIFS filesystem is being mounted read-write, or is being remounted
from read-only to read-write, check for the "space_fixup" flag and fix
all LEBs containing empty space if necessary.

Artem: tweaked the patch a bit

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