UBI: provide LEB offset information
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 14 Feb 2011 11:36:54 +0000 (13:36 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Tue, 8 Mar 2011 08:12:48 +0000 (10:12 +0200)
commitf43ec882b8b65de0ebde2e1ad52e8de0349d83ae
tree6d71ba08bf9069c354a01a2b2e78ea867bab604a
parent30b542ef453e6832ff682170b2db95d7bca2fe70
UBI: provide LEB offset information

Provide the LEB offset information in the UBI device information data
structure. This piece of information is required by UBIFS to find out
what are the LEB offsets which are aligned to the max. write size.

If LEB offset not aligned to max. write size, then UBIFS has to take
this into account to write more optimally.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/kapi.c
include/linux/mtd/ubi.h