]> git.baikalelectronics.ru Git - kernel.git/commit
UBIFS: simplify LEB recovery function further
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 16 May 2011 11:21:51 +0000 (14:21 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 16 May 2011 12:48:48 +0000 (15:48 +0300)
commit69318e02fdb26f369ec28da2f411b40f94f59f5e
tree41d145642dd7e8dc3da4e94c075daee61a71867f
parentfb3e8d04dcb8236d38aee896d1670b5ae43c3b2a
UBIFS: simplify LEB recovery function further

Further simplify 'ubifs_recover_leb()' by noticing that we have to call
'clean_buf()' in any case, and it is fine to call it if the offset is
aligned to 'c->min_io_size'. Thus, we do not have to call it separately
from every "if" - just call it once at the end.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
fs/ubifs/recovery.c