Skip to contentSkip to conversation

avoid unnnecessary mtd read when read can be satisfied by write buffer

PATCH Kevin Vigor 1 participant 1 message Jun 1, 2006 1 message not in the archive Memory technology devices (MTD)

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 6 lines · [email protected] wrote:

However when programming a flash device and then reading back to verify that it was programmed correctly, I think this write cache would defeat the purpose.

This problem already exists with the wbuf code since a call to jffs2_flash_read will return the write buffer contents regardless of the actual contents of the media (unless you call jffs2_flush_wbuf_pad() between the write and the read).

So the semantics could remain the same in that an explicit flush would be necessary in order to validate the data on flash.