[PATCH v2] UBI: only read necessary size when reading the VID header

Richard Weinberger richard at nod.at
Tue Jun 28 05:05:20 PDT 2016


Am 28.06.2016 um 13:51 schrieb Sascha Hauer:
> When reading the vid hdr from the device UBI always reads a whole
> page. Instead, read only the data we actually need and speed up
> attachment of UBI devices by potentially making use of reading
> subpages if the NAND driver supports it.
> 
> Since the VID header may be at offset vid_hdr_shift in the page and
> we can only read from the beginning of a page we have to add that
> offset to the read size.
> 
> Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>

Looks good, queued for v4.8. :-)

Thanks,
//richard



More information about the linux-mtd mailing list