diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2016-06-28 13:51:07 +0200 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2016-07-29 23:29:44 +0200 |
commit | 8a8e8d2fdbab047712fc5c3ac2704dc629af511d (patch) | |
tree | 273f16d83dc585d918b4df7f6713f113e789bfc5 /fs/ubifs | |
parent | dfaf8d2aeca4822e104fb3c4890d7b4b42048229 (diff) | |
download | op-kernel-dev-8a8e8d2fdbab047712fc5c3ac2704dc629af511d.zip op-kernel-dev-8a8e8d2fdbab047712fc5c3ac2704dc629af511d.tar.gz |
ubi: Only read necessary size when reading the VID header
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@pengutronix.de>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'fs/ubifs')
0 files changed, 0 insertions, 0 deletions