UBI WL-Subsys: Improvement in prot tree
Subsystems (2)
PATCH 1/4 UBI WL-Subsys: Improvement in prot tree
Hi, Artem,
Quoted 1 line
From
e87d521a9771d4ea8e5a6e4b5d5956b11d19e4c7Mon Sep 17 00:00:00 2001
From: Xiaochuan-Xu <[email protected]>
Date: Tue, 9 Dec 2008 15:20:18 +0800
Subject: [PATCH] Modify the ubi_wl_entry struct
Signed-off-by Xiaochuan-Xu <[email protected]>
--- drivers/mtd/ubi/ubi.h | 6 ++++-- drivers/mtd/ubi/wl.c | 45 +++++++++++++++++++++++---------------------- 2 files changed, 27 insertions(+), 24 deletions(-)
drivers/mtd/ubi/ubi.h +4 -2
@@ -95,7 +95,7 @@ enum {/** * struct ubi_wl_entry - wear-leveling entry. -* @rb: link in the corresponding RB-tree +* @u.rb: link in the corresponding (free/used) RB-tree * @ec: erase counter * @pnum: physical eraseblock number *
@@ -104,7 +104,9 @@ enum {* RB-trees. See WL sub-system for details. */ struct ubi_wl_entry { -struct rb_node rb; +union { +struct rb_node rb; + } u;int ec;int pnum; };
drivers/mtd/ubi/wl.c +23 -22
148 lines not on this page · raw message
Signature · 6 lines
1.5.3.2 -- Yours sincerely xiaochuan-xu(cqu.edu.cn)