public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Josh Boyer <jwboyer@linux.vnet.ibm.com>
To: Seongsu Lee <senux@senux.com>
Cc: linux-mtd@lists.infradead.org
Subject: Re: write buffer for MTD devices?
Date: Mon, 09 Jul 2007 08:18:54 -0500	[thread overview]
Message-ID: <1183987134.14824.4.camel@weaponx.rchland.ibm.com> (raw)
In-Reply-To: <20070705043604.GA10478@pooky.senux.com>

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

      reply	other threads:[~2007-07-09 13:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-05  4:36 write buffer for MTD devices? Seongsu Lee
2007-07-09 13:18 ` Josh Boyer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1183987134.14824.4.camel@weaponx.rchland.ibm.com \
    --to=jwboyer@linux.vnet.ibm.com \
    --cc=linux-mtd@lists.infradead.org \
    --cc=senux@senux.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox