Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761398Ab2EQJpz (ORCPT ); Thu, 17 May 2012 05:45:55 -0400 Received: from mail-wg0-f42.google.com ([74.125.82.42]:54713 "EHLO mail-wg0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759187Ab2EQJpy (ORCPT ); Thu, 17 May 2012 05:45:54 -0400 Date: Thu, 17 May 2012 12:45:48 +0300 From: Shmulik Ladkani To: dedekind1@gmail.com Cc: Richard Weinberger , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, Heinz.Egger@linutronix.de, tim.bird@am.sony.com, tglx@linutronix.de Subject: Re: [PATCH 1/7] [RFC] UBI: Export next_sqnum() Message-ID: <20120517124548.262c132a@pixies.home.jungo.com> In-Reply-To: <1337178457.24809.56.camel@sauron.fi.intel.com> References: <1337101871-31181-1-git-send-email-richard@nod.at> <1337101871-31181-2-git-send-email-richard@nod.at> <20120516170324.337f2932@pixies.home.jungo.com> <1337178457.24809.56.camel@sauron.fi.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1092 Lines: 29 Hi Artem, On Wed, 16 May 2012 17:27:37 +0300 Artem Bityutskiy wrote: > On Wed, 2012-05-16 at 17:03 +0300, Shmulik Ladkani wrote: > > Comment above the function should have been changed too. > > (look for the "next_sqnum - get next sequence number" comment) > > I do not think we should make these non-static. We should re-use the > entire scan_peb() function instead to scan the fastmap internal volume. Sorry, couldn't follow you. The new (outside eba.c) calls to 'ubi_next_sqnum' are from 'ubi_write_fastmap' (called from the 'ubi_update_fastmap' interface, implemented in fastmap.c) - during construction of VID headers of the FM_SB and FM_FATA. IMO this is reasonable. Do you suggest to somehow use existing ubi_eba_write_xxx functions? Or place the FM_SB/FM_DATA peb writing funtions into eba.c? Regards, Shmulik -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/