diff options
author | Richard Weinberger <richard@nod.at> | 2018-05-28 22:04:33 +0200 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2018-06-07 15:53:16 +0200 |
commit | 34653fd8c46e771585fce5975e4243f8fd401914 (patch) | |
tree | 2e0c2d723829de99308aa9d9a88ad7449ed14d9c /drivers/mtd/ubi/vmt.c | |
parent | 781932375ffc6411713ee0926ccae8596ed0261c (diff) | |
download | linux-34653fd8c46e771585fce5975e4243f8fd401914.tar.bz2 |
ubi: fastmap: Check each mapping only once
Maintain a bitmap to keep track of which LEB->PEB mapping
was checked already.
That way we have to read back VID headers only once.
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'drivers/mtd/ubi/vmt.c')
-rw-r--r-- | drivers/mtd/ubi/vmt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/ubi/vmt.c b/drivers/mtd/ubi/vmt.c index 3fd8d7ff7a02..0be516780e92 100644 --- a/drivers/mtd/ubi/vmt.c +++ b/drivers/mtd/ubi/vmt.c @@ -139,6 +139,7 @@ static void vol_release(struct device *dev) struct ubi_volume *vol = container_of(dev, struct ubi_volume, dev); ubi_eba_replace_table(vol, NULL); + ubi_fastmap_destroy_checkmap(vol); kfree(vol); } |