From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga11.intel.com ([192.55.52.93]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UBoAH-00060H-Ja for linux-mtd@lists.infradead.org; Sat, 02 Mar 2013 15:15:58 +0000 Message-ID: <1362237384.2745.20.camel@sauron> Subject: Re: [PATCH] phram: Allow the user to set the erase page size. From: Artem Bityutskiy To: Patrick O'Grady Date: Sat, 02 Mar 2013 17:16:24 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Cc: David Woodhouse , Joern Engel , linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org Reply-To: dedekind1@gmail.com List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, 2013-02-15 at 12:35 -0800, Patrick O'Grady wrote: > From: Patrick O'Grady > > Permit the user to specify the erase page size as a parameter. > This solves two problems: > > - phram can access images made by mkfs.jffs2. mkfs.jffs2 won't > create images with erase sizes less than 8KiB; many architectures > define PAGE_SIZE as 4KiB. > > - Allows more effective use of small capacity devices. JFFS2 > needs somewhere between 2 and 5 empty pages for garbage collection; > and for an NVRAM part with only 32KiB of space, a smaller erase page > allows much better utilization in applications where garbage collection > is important. Unfortunately, the patch is line-wrapped and not applicable to the latest kernel tree. Would you please refresh and re-send properly? -- Best Regards, Artem Bityutskiy