UBIFS: split ubifs_rcvry_gc_commit
commit447442139c764fd75cf892905d0feb08a9b983ed
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 27 Apr 2011 11:52:35 +0000 (27 14:52 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 13 May 2011 16:23:56 +0000 (13 19:23 +0300)
tree2a3f547c28d5e28b25ce54980539e09eff6d6375
parentec0681426526b23d3e12cf247d64676806c30b7f
UBIFS: split ubifs_rcvry_gc_commit

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>
fs/ubifs/recovery.c