diff options
author | Xiaochuan-Xu <xiaochuan-xu@cqu.edu.cn> | 2008-12-09 06:44:12 -0500 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2008-12-15 12:34:50 -0500 |
commit | 23553b2c08c9b6e96be98c44feb9c5e640d3e789 (patch) | |
tree | 222756174c6f0194b9f34b7448ba3976ed0032cf /drivers/mtd/ubi/ubi.h | |
parent | ad5942bad6addcf9697a74413b517d9724d803a4 (diff) |
UBI: prepare for protection tree improvements
This patch modifies @struct ubi_wl_entry and adds union which
contains only one element so far. This is just a preparation
for further changes which will kill the protection tree and
make UBI use a list instead.
Signed-off-by: Xiaochuan-Xu <xiaochuan-xu@cqu.edu.cn>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers/mtd/ubi/ubi.h')
-rw-r--r-- | drivers/mtd/ubi/ubi.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/mtd/ubi/ubi.h b/drivers/mtd/ubi/ubi.h index 1c3fa18c26a7..46a4763f8e7c 100644 --- a/drivers/mtd/ubi/ubi.h +++ b/drivers/mtd/ubi/ubi.h | |||
@@ -95,7 +95,7 @@ enum { | |||
95 | 95 | ||
96 | /** | 96 | /** |
97 | * struct ubi_wl_entry - wear-leveling entry. | 97 | * struct ubi_wl_entry - wear-leveling entry. |
98 | * @rb: link in the corresponding RB-tree | 98 | * @u.rb: link in the corresponding (free/used) RB-tree |
99 | * @ec: erase counter | 99 | * @ec: erase counter |
100 | * @pnum: physical eraseblock number | 100 | * @pnum: physical eraseblock number |
101 | * | 101 | * |
@@ -104,7 +104,9 @@ enum { | |||
104 | * RB-trees. See WL sub-system for details. | 104 | * RB-trees. See WL sub-system for details. |
105 | */ | 105 | */ |
106 | struct ubi_wl_entry { | 106 | struct ubi_wl_entry { |
107 | struct rb_node rb; | 107 | union { |
108 | struct rb_node rb; | ||
109 | } u; | ||
108 | int ec; | 110 | int ec; |
109 | int pnum; | 111 | int pnum; |
110 | }; | 112 | }; |