diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2007-12-06 11:47:30 -0500 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2007-12-26 12:15:14 -0500 |
commit | 393852ecfeec575ac78216b0eb58e4fd92f0816c (patch) | |
tree | 99edbcd7fee9cdaa69f51187834f93ada73feada /include/linux/mtd/ubi.h | |
parent | 94780d4de2e9339ab93df63420db70f11882634d (diff) |
UBI: add ubi_leb_map interface
The idea of this interface belongs to Adrian Hunter. The
interface is extremely useful when one has to have a guarantee
that an LEB will contain all 0xFFs even in case of an unclean
reboot. UBI does have an 'ubi_leb_erase()' call which may do
this, but it is stupid and ineffecient, because it flushes whole
queue. I should be re-worked to just be a pair of unmap,
map calls.
The user of the interfaci is UBIFS at the moment.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'include/linux/mtd/ubi.h')
-rw-r--r-- | include/linux/mtd/ubi.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mtd/ubi.h b/include/linux/mtd/ubi.h index 3d967b6b120..c4abe035122 100644 --- a/include/linux/mtd/ubi.h +++ b/include/linux/mtd/ubi.h | |||
@@ -167,6 +167,7 @@ int ubi_leb_change(struct ubi_volume_desc *desc, int lnum, const void *buf, | |||
167 | int len, int dtype); | 167 | int len, int dtype); |
168 | int ubi_leb_erase(struct ubi_volume_desc *desc, int lnum); | 168 | int ubi_leb_erase(struct ubi_volume_desc *desc, int lnum); |
169 | int ubi_leb_unmap(struct ubi_volume_desc *desc, int lnum); | 169 | int ubi_leb_unmap(struct ubi_volume_desc *desc, int lnum); |
170 | int ubi_leb_map(struct ubi_volume_desc *desc, int lnum, int dtype); | ||
170 | int ubi_is_mapped(struct ubi_volume_desc *desc, int lnum); | 171 | int ubi_is_mapped(struct ubi_volume_desc *desc, int lnum); |
171 | 172 | ||
172 | /* | 173 | /* |