public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* write buffer for MTD devices?
@ 2007-07-05  4:36 Seongsu Lee
  2007-07-09 13:18 ` Josh Boyer
  0 siblings, 1 reply; 2+ messages in thread
From: Seongsu Lee @ 2007-07-05  4:36 UTC (permalink / raw)
  To: linux-mtd

Hi,

You know that block devices such as hard disk has write buffer
in hard disk itself to speed up the write performance.
(The write buffer speed up when it works in write-back mode.)

My questions are: (only for NAND flash memory)

1) Then, does MTD devices has write buffer in device itself?

2) If ret->mtd->write() returns OK, is the data sent by user
   successfully written on flash memory media? (not cache or
   buffer)

Any comments, related matrials or URLs are needed.

--
Seongsu Lee, http://www.senux.com/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: write buffer for MTD devices?
  2007-07-05  4:36 write buffer for MTD devices? Seongsu Lee
@ 2007-07-09 13:18 ` Josh Boyer
  0 siblings, 0 replies; 2+ messages in thread
From: Josh Boyer @ 2007-07-09 13:18 UTC (permalink / raw)
  To: Seongsu Lee; +Cc: linux-mtd

On Thu, 2007-07-05 at 13:36 +0900, Seongsu Lee wrote:
> Hi,
> 
> You know that block devices such as hard disk has write buffer
> in hard disk itself to speed up the write performance.
> (The write buffer speed up when it works in write-back mode.)
> 
> My questions are: (only for NAND flash memory)
> 
> 1) Then, does MTD devices has write buffer in device itself?

The mtdblock driver does.  It caches one eraseblock.  JFFS2 also has a
write buffer.  Other than that, no.

> 2) If ret->mtd->write() returns OK, is the data sent by user
>    successfully written on flash memory media? (not cache or
>    buffer)

Depends.  If the write is being done to an mtdblock, then it is written
to the cache.  If it's being done to a "real" device, then it should be
written to flash.

> Any comments, related matrials or URLs are needed.

It's all in the code.

josh

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-07-09 13:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-05  4:36 write buffer for MTD devices? Seongsu Lee
2007-07-09 13:18 ` Josh Boyer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox