[PATCH v3 06/18] UBI: factorize code used to manipulate volumes at attach time

2016-09-16 Thread Boris Brezillon
Volume creation/search code is duplicated in a few places (fastmap and non fastmap code). Create some helpers to factorize the code. Signed-off-by: Boris Brezillon --- drivers/mtd/ubi/attach.c | 151 +-

[PATCH v3 06/18] UBI: factorize code used to manipulate volumes at attach time

2016-09-16 Thread Boris Brezillon
Volume creation/search code is duplicated in a few places (fastmap and non fastmap code). Create some helpers to factorize the code. Signed-off-by: Boris Brezillon --- drivers/mtd/ubi/attach.c | 151 +- drivers/mtd/ubi/fastmap.c | 27 +