aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ubi/ubi.h
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-05-23 09:04:17 -0400
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-06-02 06:53:35 -0400
commit90bf0265e5b0d561f215a69bb7a46c4071b2c93b (patch)
tree7b3b1cb2f394687b5e0f841031200e9c37faef92 /drivers/mtd/ubi/ubi.h
parentddbd3b61708483f73dbcc62a94d16cc7db928cba (diff)
UBI: introduce new constants
This patch is a clean-up and a preparation for the following patches. It introduece constants for the return values of the 'ubi_eba_copy_leb()' function. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers/mtd/ubi/ubi.h')
-rw-r--r--drivers/mtd/ubi/ubi.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/mtd/ubi/ubi.h b/drivers/mtd/ubi/ubi.h
index 749007e9f1aa..fd9b20da5b6b 100644
--- a/drivers/mtd/ubi/ubi.h
+++ b/drivers/mtd/ubi/ubi.h
@@ -100,6 +100,22 @@ enum {
100 UBI_IO_BITFLIPS 100 UBI_IO_BITFLIPS
101}; 101};
102 102
103/*
104 * Return codes of the 'ubi_eba_copy_leb()' function.
105 *
106 * MOVE_CANCEL_RACE: canceled because the volume is being deleted, the source
107 * PEB was put meanwhile, or there is I/O on the source PEB
108 * MOVE_TARGET_WR_ERR: canceled because there was a write error to the target
109 * PEB
110 * MOVE_CANCEL_BITFLIPS: canceled because a bit-flip was detected in the
111 * target PEB
112 */
113enum {
114 MOVE_CANCEL_RACE = 1,
115 MOVE_TARGET_WR_ERR,
116 MOVE_CANCEL_BITFLIPS,
117};
118
103/** 119/**
104 * struct ubi_wl_entry - wear-leveling entry. 120 * struct ubi_wl_entry - wear-leveling entry.
105 * @u.rb: link in the corresponding (free/used) RB-tree 121 * @u.rb: link in the corresponding (free/used) RB-tree