Re: [PATCH] phram: Allow the user to set the erase page size.
From: JÃrn Engel
Date: Fri Feb 15 2013 - 16:05:47 EST
On Fri, 15 February 2013 12:35:46 -0800, Patrick O'Grady wrote:
> 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.
> Signed-off-by: Patrick O'Grady <patrick@xxxxxxxxxxxxx>
I can't see any argument against this.
Reviewed-by: Joern Engel <joern@xxxxxxxxx>
"[One] doesn't need to know [...] how to cause a headache in order
to take an aspirin."
-- Scott Culp, Manager of the Microsoft Security Response Center, 2001
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/