From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-out.bhp.t-online.de ([195.145.119.39] helo=orvill.bhp.t-online.de) by pentafluge.infradead.org with esmtp (Exim 3.22 #1 (Red Hat Linux)) id 18JeKZ-0008TX-00 for ; Wed, 04 Dec 2002 18:33:07 +0000 Received: from ylva.bhp.t-online.de (ylva.ada.t-online.de [172.30.8.40]) by smtp-out.bhp.t-online.de (iPlanet Messaging Server 5.2 (built Feb 21 2002)) with SMTP id <0H6L00BS9ZL7K5@smtp-out.bhp.t-online.de> for linux-mtd@lists.infradead.org; Wed, 04 Dec 2002 20:03:08 +0100 (MET) Date: Wed, 04 Dec 2002 20:01:08 +0100 From: Thomas Gleixner Subject: Re: Problem: 51MB partition max size on jffs2 In-reply-to: <14294.1039027619@passion.cambridge.redhat.com> To: David Woodhouse , Dave Ellis Cc: 'Ken Offer' , "'linux-mtd@lists.infradead.org'" Reply-to: tglx@linutronix.de Message-id: <200212042001.08259.tglx@linutronix.de> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT References: <00512BA4F9D3D311912A009027E9B8F407E4A3@NT> <14294.1039027619@passion.cambridge.redhat.com> Sender: linux-mtd-admin@lists.infradead.org Errors-To: linux-mtd-admin@lists.infradead.org List-Help: List-Post: List-Subscribe: , List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: On Wednesday 04 December 2002 19:46, David Woodhouse wrote: > DGE@sixnetio.com said: > > kmalloc() is limited to 128K and the 128MB Flash needs more than > > twice that, > > > > so I tried vmalloc() and it seems to be OK (at least with PPC 2.4.18 > > patched for the new MTD code). Does anyone know if this change is > > safe? > > You need to change the corresponding kfree() to vfree(). That's right. In actual CVS-code this problem is solved by building virtual blocks of 2,4 or 8 physical blocks. -- Thomas ____________________________________________________ linutronix - competence in embedded & realtime linux http://www.linutronix.de mail: tglx@linutronix.de