From: Xiaochuan-Xu Date: Mon, 15 Dec 2008 13:07:41 +0000 (+0800) Subject: UBI: simplify PEB protection code X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ff0473f071dce5dc3969ec332efcdeb0d3afd40;p=pandora-kernel.git UBI: simplify PEB protection code UBI has 2 RB-trees to implement PEB protection, which is too much for simply prevent PEB from being moved for some time. This patch implements this using lists. The benefits: 1. No need to allocate protection entry on each PEB get. 2. No need to maintain balanced trees and walk them. Signed-off-by: Xiaochuan-Xu Signed-off-by: Artem Bityutskiy --- Reading git-diff-tree failed