• Artem Bityutskiy's avatar
    UBI: remember copy_flag while scanning · fb22b59b
    Artem Bityutskiy authored
    While scanning the flash we read all VID headers and store some important
    information in 'struct ubi_scan_leb'. Store also the 'copy_flag' value there
    as it is needed when comparing LEBs. We do not increase memory consumption
    because this is just one bit and we have plenty of spare bits in
    'struct ubi_scan_leb' (sizeof(struct ubi_scan_leb) is 48 both with and
    without this patch).
    Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
    fb22b59b
scan.c 41.2 KB