From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751647AbaJPLH3 (ORCPT ); Thu, 16 Oct 2014 07:07:29 -0400 Received: from a.ns.miles-group.at ([95.130.255.143]:65275 "EHLO radon.swed.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750765AbaJPLH2 (ORCPT ); Thu, 16 Oct 2014 07:07:28 -0400 Message-ID: <543FA6EB.1000602@nod.at> Date: Thu, 16 Oct 2014 13:07:23 +0200 From: Richard Weinberger User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.0 MIME-Version: 1.0 To: dedekind1@gmail.com CC: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/4] UBI: Fastmap: Care about the protection queue References: <1412029248-22454-1-git-send-email-richard@nod.at> <1412029248-22454-4-git-send-email-richard@nod.at> <1412346676.3795.62.camel@sauron.fi.intel.com> <542EF3BF.1070401@nod.at> <1413206263.7906.18.camel@sauron.fi.intel.com> <543BE21F.5020504@nod.at> <1413213803.7906.45.camel@sauron.fi.intel.com> <543C3E60.4080507@nod.at> <1413282203.7906.72.camel@sauron.fi.intel.com> <543F9895.7010502@nod.at> <1413454534.7906.156.camel@sauron.fi.intel.com> In-Reply-To: <1413454534.7906.156.camel@sauron.fi.intel.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 16.10.2014 um 12:15 schrieb Artem Bityutskiy: > On Thu, 2014-10-16 at 12:06 +0200, Richard Weinberger wrote: >> What I'm trying to say is, state tracking would solve the "internal state accessing" problem in a clean and >> sane way. > > Can you squeeze the stat to the lookup talbe? It contains pointers, so > the last 2 bits could be used for the state. IMHO this is beyond horrible. :) The goal is the make things clean in terms of not accessing internal state from fastmap.c. If the price for that is abusing pointers in magic ways I'd say no. Rather consider the fastmap-wl.c idea... Thanks, //richard