UBIFS: split ubifs_rcvry_gc_commit
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 27 Apr 2011 11:52:35 +0000 (14:52 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 13 May 2011 16:23:56 +0000 (19:23 +0300)
Split the 'ubifs_rcvry_gc_commit()' function and introduce a 'grab_empty_leb()'
heler. This cleans 'ubifs_rcvry_gc_commit()' a little and makes it a bit less
of spagetti.

Also, add a commentary which explains why it is crucial to first search for an
empty LEB and then run commit.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>

No differences found