[PATCH] mtd_dataflash, fix block vs page erase
authorDavid Brownell <david-b@pacbell.net>
Tue, 14 Mar 2006 05:20:40 +0000 (21:20 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 14 Mar 2006 15:57:17 +0000 (07:57 -0800)
commit3cb4f09fc2e98bbf26f8c900a94bf3910cd4d823
tree3b0c652fedc40b673bf533f452dee83169655073
parent3759fa9c55923f719ae944a3f8fbb029b36f759d
[PATCH] mtd_dataflash, fix block vs page erase

Fix a bug in the block-erase optimization for Dataflash; it was using block
erase even for smaller segments that need page erase.

That wouldn't matter for JFFS2, which never erases less than one block
(sometimes several blocks), but for other callers it might.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Acked-by: David Woodhouse <dwmw2@infradead.org>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/mtd/devices/mtd_dataflash.c