[PATCH] MTD: mtdconcat NAND/Sibley support
Nicolas Pitre
nico at cam.org
Thu Apr 27 09:02:33 EDT 2006
On Thu, 27 Apr 2006, Alexander Belyakov wrote:
> Nicolas Pitre wrote:
> >
> > That won't work with Sibley.
> >
>
> It does work for Sibley. I've checked it for both NAND and Sibley before
> posting.
>
> > Sibley flash must write everything all at once with
> > a single writev call.
> >
>
> Not sure what did you mean by that. But I should say that concat_writev()
> function does writes by page-sized chunks even if one vector entry has size
> less than one page. Function just "glues" it with the next vector entry (or
> its part) if any. So there are no writes with size less than pagesize, except
> first and last pages if we have unaligned data in downcoming vector.
Which means you have to copy data into your page, which is against the
point of writev(). If you're copying data into a separate page in order
to use write() then JFFS2 could simply do it itself and writev()
eliminated entirely.
Nicolas
More information about the linux-mtd
mailing list