Is JFFS a full featured filesystem?
David Woodhouse
dwmw2 at infradead.org
Wed Aug 2 10:20:04 EDT 2000
alex at cendio.se said:
> Exactly how did you plan to work out the dirty ranges? Compare with
> on-flash contents?
Apparently it's easy when using generic_file_write, because prepare_write
will give you the exact range.
When doing writable mmap() we have to do something cleverer - basically yes,
comparing with the on-flash contents. We can either do that by going and
reading the flash nodes again on writepage(), or we can keep a copy of the
clean page in RAM before it's dirtied.
To start with, I'm inclined just to accept the hit of the 4Kb writes, and
let the GC combine nodes later as necessary. Comparing with old contents
can come later. This is only going to be a problem with writable mmap(),
which isn't supported at the moment _anyway_. The normal write() case is
fairly simple to optimise.
--
dwmw2
To unsubscribe, send "unsubscribe mtd" to majordomo at infradead.org
More information about the linux-mtd
mailing list