diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2008-07-10 17:38:33 +0200 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2008-07-24 12:32:56 +0200 |
commit | a5bf6190417cbbf80443a9f71c65b653e13e9982 (patch) | |
tree | 341b656517b02efe8ee49446d4591625da69171a /include | |
parent | UBI: fix 64-bit calculations (diff) | |
download | linux-a5bf6190417cbbf80443a9f71c65b653e13e9982.tar.xz linux-a5bf6190417cbbf80443a9f71c65b653e13e9982.zip |
UBI: add ubi_sync() interface
To flush MTD device caches.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'include')
-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 f71201d0f3e7..83302bbbddb4 100644 --- a/include/linux/mtd/ubi.h +++ b/include/linux/mtd/ubi.h @@ -152,6 +152,7 @@ int ubi_leb_erase(struct ubi_volume_desc *desc, int lnum); int ubi_leb_unmap(struct ubi_volume_desc *desc, int lnum); int ubi_leb_map(struct ubi_volume_desc *desc, int lnum, int dtype); int ubi_is_mapped(struct ubi_volume_desc *desc, int lnum); +int ubi_sync(int ubi_num); /* * This function is the same as the 'ubi_leb_read()' function, but it does not |