diff options
author | Richard Weinberger <richard@nod.at> | 2012-09-26 11:51:50 -0400 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-10-03 09:39:37 -0400 |
commit | 76ac66e469f084d41742ba08923de76fbdc7dce3 (patch) | |
tree | f56c894f1315f477895617b9075e2df7fa0108c6 | |
parent | dbb7d2a88d2a7bd3624e090bee42cdee048d9290 (diff) |
UBI: Wire-up fastmap
Make fastmap known to Kconfig, UBI Makefile and MAINTAINERS.
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
-rw-r--r-- | MAINTAINERS | 6 | ||||
-rw-r--r-- | drivers/mtd/ubi/Kconfig | 21 | ||||
-rw-r--r-- | drivers/mtd/ubi/Makefile | 1 |
3 files changed, 28 insertions, 0 deletions
diff --git a/MAINTAINERS b/MAINTAINERS index fdc0119963e7..7bcade042b0d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS | |||
@@ -7075,6 +7075,12 @@ F: drivers/mtd/ubi/ | |||
7075 | F: include/linux/mtd/ubi.h | 7075 | F: include/linux/mtd/ubi.h |
7076 | F: include/mtd/ubi-user.h | 7076 | F: include/mtd/ubi-user.h |
7077 | 7077 | ||
7078 | UNSORTED BLOCK IMAGES (UBI) Fastmap | ||
7079 | M: Richard Weinberger <richard@nod.at> | ||
7080 | L: linux-mtd@lists.infradead.org | ||
7081 | S: Maintained | ||
7082 | F: drivers/mtd/ubi/fastmap.c | ||
7083 | |||
7078 | USB ACM DRIVER | 7084 | USB ACM DRIVER |
7079 | M: Oliver Neukum <oliver@neukum.org> | 7085 | M: Oliver Neukum <oliver@neukum.org> |
7080 | L: linux-usb@vger.kernel.org | 7086 | L: linux-usb@vger.kernel.org |
diff --git a/drivers/mtd/ubi/Kconfig b/drivers/mtd/ubi/Kconfig index 271a842f8c39..36663af56d89 100644 --- a/drivers/mtd/ubi/Kconfig +++ b/drivers/mtd/ubi/Kconfig | |||
@@ -56,6 +56,27 @@ config MTD_UBI_BEB_LIMIT | |||
56 | 56 | ||
57 | Leave the default value if unsure. | 57 | Leave the default value if unsure. |
58 | 58 | ||
59 | config MTD_UBI_FASTMAP | ||
60 | bool "UBI Fastmap (Experimental feature)" | ||
61 | default n | ||
62 | help | ||
63 | Important: this feature is experimental so far and the on-flash | ||
64 | format for fastmap may change in the next kernel versions | ||
65 | |||
66 | Fastmap is a mechanism which allows attaching an UBI device | ||
67 | in nearly constant time. Instead of scanning the whole MTD device it | ||
68 | only has to locate a checkpoint (called fastmap) on the device. | ||
69 | The on-flash fastmap contains all information needed to attach | ||
70 | the device. Using fastmap makes only sense on large devices where | ||
71 | attaching by scanning takes long. UBI will not automatically install | ||
72 | a fastmap on old images, but you can set the UBI module parameter | ||
73 | fm_autoconvert to 1 if you want so. Please note that fastmap-enabled | ||
74 | images are still usable with UBI implementations without | ||
75 | fastmap support. On typical flash devices the whole fastmap fits | ||
76 | into one PEB. UBI will reserve PEBs to hold two fastmaps. | ||
77 | |||
78 | If in doubt, say "N". | ||
79 | |||
59 | config MTD_UBI_GLUEBI | 80 | config MTD_UBI_GLUEBI |
60 | tristate "MTD devices emulation driver (gluebi)" | 81 | tristate "MTD devices emulation driver (gluebi)" |
61 | help | 82 | help |
diff --git a/drivers/mtd/ubi/Makefile b/drivers/mtd/ubi/Makefile index a0803ac74712..b46b0c978581 100644 --- a/drivers/mtd/ubi/Makefile +++ b/drivers/mtd/ubi/Makefile | |||
@@ -2,5 +2,6 @@ obj-$(CONFIG_MTD_UBI) += ubi.o | |||
2 | 2 | ||
3 | ubi-y += vtbl.o vmt.o upd.o build.o cdev.o kapi.o eba.o io.o wl.o attach.o | 3 | ubi-y += vtbl.o vmt.o upd.o build.o cdev.o kapi.o eba.o io.o wl.o attach.o |
4 | ubi-y += misc.o debug.o | 4 | ubi-y += misc.o debug.o |
5 | ubi-$(CONFIG_MTD_UBI_FASTMAP) += fastmap.o | ||
5 | 6 | ||
6 | obj-$(CONFIG_MTD_UBI_GLUEBI) += gluebi.o | 7 | obj-$(CONFIG_MTD_UBI_GLUEBI) += gluebi.o |