From: Artem Bityutskiy Date: Tue, 26 Apr 2011 06:49:32 +0000 (+0300) Subject: UBIFS: remove duplicated code X-Git-Tag: v3.0-rc1~317^2~36 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2405f5948119cdc1c28697fd3110124dad974898;p=pandora-kernel.git 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 --- Reading git-diff-tree failed