commit | 2405f5948119cdc1c28697fd3110124dad974898 | [log] [tgz] |
---|---|---|
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | Tue Apr 26 09:49:32 2011 +0300 |
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | Fri May 13 19:23:55 2011 +0300 |
tree | 04bad5852693a5a18cb919c298e59dbf385c1d96 | |
parent | 2cd0a60cf49db4722445337b90fb06c9672f1128 [diff] |
UBIFS: remove duplicated code We have duplicated code in 'ubifs_garbage_collect()' and 'ubifs_rcvry_gc_commit()', which is about handling the special case of free LEB. In both cases we just want to garbage-collect the LEB using 'ubifs_garbage_collect_leb()'. This patch teaches 'ubifs_garbage_collect_leb()' to handle free LEB's so that the caller does not have to do this and the duplicated code is removed. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>