]> git.baikalelectronics.ru Git - kernel.git/commit
ps3flash: Cache the last accessed FLASH chunk
authorGeert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Wed, 10 Jun 2009 04:39:07 +0000 (04:39 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 15 Jun 2009 06:47:27 +0000 (16:47 +1000)
commit8657ff9389ad201665fc62d4283e76625344763c
tree768510bab8b596ff499f796ea8c08077074eb5d6
parentc4110a4fd4c2d74c7d8426d03189a88c8d6ac12f
ps3flash: Cache the last accessed FLASH chunk

Add support for caching, to reduce FLASH wear when writing using small
blocksizes. As we also don't care anymore about heads and tails in case of
partial writes, this greatly simplifies the code for handling writes.

Note: We don't bother caching reads smaller than the FLASH chunk size
(256 KiB).

Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
drivers/char/ps3flash.c