UBI: bugfix - do not torture PEB needlessly

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Fri Jul 25 10:59:05 EDT 2008


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=4d88de4beb6f327dfc7c2221eab532dad5b2bb3e
Commit:     4d88de4beb6f327dfc7c2221eab532dad5b2bb3e
Parent:     8c1e6ee10bd87d70faada065a8d1f70732c17382
Author:     Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
AuthorDate: Fri Jul 18 12:42:14 2008 +0300
Committer:  Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
CommitDate: Thu Jul 24 13:34:46 2008 +0300

    UBI: bugfix - do not torture PEB needlessly
    
    This is probably a copy-paste bug - we torture the old PEB
    in the atomic LEB change function, but we should not do this.
    
    Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
---
 drivers/mtd/ubi/eba.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/ubi/eba.c b/drivers/mtd/ubi/eba.c
index 613cd1e..e142081 100644
--- a/drivers/mtd/ubi/eba.c
+++ b/drivers/mtd/ubi/eba.c
@@ -906,7 +906,7 @@ retry:
 	}
 
 	if (vol->eba_tbl[lnum] >= 0) {
-		err = ubi_wl_put_peb(ubi, vol->eba_tbl[lnum], 1);
+		err = ubi_wl_put_peb(ubi, vol->eba_tbl[lnum], 0);
 		if (err)
 			goto out_leb_unlock;
 	}



More information about the linux-mtd-cvs mailing list