From: Xiaochuan-Xu Date: Mon, 15 Dec 2008 13:07:41 +0000 (+0800) Subject: UBI: simplify PEB protection code X-Git-Tag: v2.6.29-rc1~534^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b6c32daec3bff380ced6822002bc352bdf2c982;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