:Remove the prot tree from the WL unit
Subsystems (2)
PATCH 1/1 :Remove the prot tree from the WL unit
Hi Artem,
This is the patch you asked for.
Only the prot tree and a few comments were modified. Please check it. and I'll test it a bit later.
Quoted 1 line
From
3df5422ade6d77cfa763ca0e1e8374b984982feeMon Sep 17 00:00:00 2001
From: XiaoChuan-Xu <[email protected]>
Date: Wed, 16 Jul 2008 18:12:13 +0800
Subject: [PATCH] Remove the prot tree from the WL unit
Signed-off-by XiaoChuan-Xu <[email protected]>
--- drivers/mtd/ubi/ubi.h | 9 +-- drivers/mtd/ubi/wl.c | 295 ++----------------------------------------------- 2 files changed, 13 insertions(+), 291 deletions(-)
drivers/mtd/ubi/ubi.h +1 -8
@@ -286,10 +286,7 @@ struct ubi_wl_entry;* @used: RB-tree of used physical eraseblocks * @free: RB-tree of free physical eraseblocks * @scrub: RB-tree of physical eraseblocks which need scrubbing -* @prot: protection trees -* @prot.pnum: protection tree indexed by physical eraseblock numbers -* @prot.aec: protection tree indexed by absolute erase counter value -* @wl_lock: protects the @used, @free, @prot, @lookuptbl, @abs_ec, @move_from, +* @wl_lock: protects the @used, @free, @lookuptbl, @abs_ec, @move_from, * @move_to, @move_to_put @erase_pending, @wl_scheduled, and @works * fields * @move_mutex: serializes eraseblock moves
@@ -369,10 +366,6 @@ struct ubi_device {struct rb_root used;struct rb_root free;struct rb_root scrub; -struct { -struct rb_root pnum; -struct rb_root aec; - } prot;spinlock_t wl_lock;struct mutex move_mutex;struct rw_semaphore work_sem;
drivers/mtd/ubi/wl.c +12 -283
441 lines not on this page · raw message
Signature · 7 lines
1.5.3.2 -- yours Sincerely, xiaochuan-xu (许小川)