• Artem Bityutskiy's avatar
    UBIFS: remove duplicated code · 2405f594
    Artem Bityutskiy authored
    
    
    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: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
    2405f594
gc.c 27.8 KB