From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from submit1.sa.ew.hu ([212.108.200.71]) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WzJFV-0000Ac-Cb for linux-mtd@lists.infradead.org; Tue, 24 Jun 2014 05:26:30 +0000 Message-ID: <53A90BEE.5020209@denx.de> Date: Tue, 24 Jun 2014 07:26:06 +0200 From: Heiko Schocher Reply-To: hs@denx.de MIME-Version: 1.0 To: artem.bityutskiy@linux.intel.com Subject: Re: UBI: fix rb_tree node comparison in add_map commit buggy? References: <53A7EF04.7040805@denx.de> <53A809A3.30703@denx.de> <53A82077.6090109@nod.at> <53A82609.9090408@denx.de> <53A87AD5.8050305@nod.at> <1403585976.7903.70.camel@sauron.fi.intel.com> In-Reply-To: <1403585976.7903.70.camel@sauron.fi.intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Richard Weinberger , linux-mtd@lists.infradead.org List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hello Artem, Am 24.06.2014 06:59, schrieb Artem Bityutskiy: > On Mon, 2014-06-23 at 21:07 +0200, Richard Weinberger wrote: >> I think it would be better to "fix" the whole logic such that low volume ids go into >> the left rb node instead of the right. >> Just to avoid further confusion. >> Artem, do you know why UBI does it the other way around for volume ids? > > I do not remember. Probably no particular reason. > > I'd suggest to do a quick fix first and submit to Linus for 3.16, and > then people can do whatever logic streamlining for 3.17, makes sense? I posted such a patch, but for some reason, I could not find it in http://lists.infradead.org/pipermail/linux-mtd/2014-June/date.html Here an extract from the header I got, as I was on Cc ... From: Heiko Schocher To: linux-mtd@lists.infradead.org Cc: Heiko Schocher , Artem Bityutskiy , Richard Weinberger , David Woodhouse , Brian Norris , Mike Snitzer , Wolfgang Denk , linux-kernel@vger.kernel.org Subject: [PATCH] ubi: fix correct rb_tree node comparison in add_vol Date: Mon, 23 Jun 2014 15:27:09 +0200 Message-Id: <1403530029-12151-1-git-send-email-hs@denx.de> X-Mailer: git-send-email 1.8.3.1 ... bye, Heiko -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany