From: xiaochuan-xu <xiaochuan-xu@cqu.edu.cn>
To: dedekind@infradead.org
Cc: linux-mtd <linux-mtd@lists.infradead.org>
Subject: Re: [PATCH 4/4] UBI WL-Subsys: Improvement in prot tree
Date: Tue, 16 Dec 2008 10:48:11 +0800 [thread overview]
Message-ID: <429395560.30413@cqu.edu.cn> (raw)
Message-ID: <1229395691.2691.18.camel@localhost.localdomain> (raw)
In-Reply-To: <1229356809.4911.57.camel@sauron>
>From e43d4e5cbaf1adb3af680a6dec53c142c68014ed Mon Sep 17 00:00:00 2001
From: Xiaochuan-Xu <xiaochuan-xu@cqu.edu.cn>
Date: Tue, 16 Dec 2008 10:44:07 +0800
Subject: [PATCH] delete idle varialbe abs_ec
@wl->abs_ec is useless any more in the Simplify Protection
PEB Queue implementation.
Signed-off-by: Xiaochuan-Xu <xiaochuan-xu@cqu.edu.cn>
---
drivers/mtd/ubi/ubi.h | 2 --
drivers/mtd/ubi/wl.c | 1 -
2 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/drivers/mtd/ubi/ubi.h b/drivers/mtd/ubi/ubi.h
index a4b921b..4a8ec48 100644
--- a/drivers/mtd/ubi/ubi.h
+++ b/drivers/mtd/ubi/ubi.h
@@ -328,7 +328,6 @@ struct ubi_wl_entry;
* @wl_scheduled: non-zero if the wear-leveling was scheduled
* @lookuptbl: a table to quickly find a &struct ubi_wl_entry object for any
* physical eraseblock
- * @abs_ec: absolute erase counter
* @move_from: physical eraseblock from where the data is being moved
* @move_to: physical eraseblock where the data is being moved to
* @move_to_put: if the "to" PEB was put
@@ -410,7 +409,6 @@ struct ubi_device {
struct rw_semaphore work_sem;
int wl_scheduled;
struct ubi_wl_entry **lookuptbl;
- unsigned long long abs_ec;
struct ubi_wl_entry *move_from;
struct ubi_wl_entry *move_to;
int move_to_put;
diff --git a/drivers/mtd/ubi/wl.c b/drivers/mtd/ubi/wl.c
index 4fe3f25..0b5a595 100644
--- a/drivers/mtd/ubi/wl.c
+++ b/drivers/mtd/ubi/wl.c
@@ -982,7 +982,6 @@ static int erase_worker(struct ubi_device *ubi, struct ubi_work *wl_wrk,
kfree(wl_wrk);
spin_lock(&ubi->wl_lock);
- ubi->abs_ec += 1;
wl_tree_add(e, &ubi->free);
spin_unlock(&ubi->wl_lock);
--
1.5.3.2
On Mon, 2008-12-15 at 18:00 +0200, Artem Bityutskiy wrote:
> Amended and pushed to ubi-2.6.git tree. Please, check.
--
Yours sincerely
xiaochuan-xu(cqu.edu.cn)
next prev parent reply other threads:[~2008-12-16 2:48 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-09 11:46 [PATCH 4/4] UBI WL-Subsys: Improvement in prot tree xiaochuan-xu
2008-12-09 11:46 ` xiaochuan-xu
2008-12-09 13:03 ` Artem Bityutskiy
2008-12-10 4:52 ` xiaochuan-xu
2008-12-10 4:52 ` xiaochuan-xu
2008-12-10 8:44 ` Artem Bityutskiy
2008-12-10 13:11 ` xiaochuan-xu
2008-12-10 13:11 ` xiaochuan-xu
2008-12-10 13:35 ` Artem Bityutskiy
[not found] ` <1228913251.3655.10.camel@localhost.localdomain>
[not found] ` <1228931859.13686.350.camel@sauron>
[not found] ` <1228981865.2702.9.camel@localhost.localdomain>
[not found] ` <1229022841.13686.384.camel@sauron>
[not found] ` <1229332169.5306.1.camel@localhost.localdomain>
[not found] ` <1229332781.13686.447.camel@sauron>
[not found] ` <1229343610.2687.52.camel@localhost.localdomain>
[not found] ` <1229343746.4911.2.camel@sauron>
[not found] ` <1229347894.2687.56.camel@localhost.localdomain>
[not found] ` <1229356809.4911.57.camel@sauron>
2008-12-16 2:33 ` xiaochuan-xu
2008-12-16 2:33 ` xiaochuan-xu
2008-12-16 2:48 ` xiaochuan-xu [this message]
2008-12-16 2:48 ` xiaochuan-xu
2008-12-16 6:36 ` Artem Bityutskiy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=429395560.30413@cqu.edu.cn \
--to=xiaochuan-xu@cqu.edu.cn \
--cc=dedekind@infradead.org \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.