[LogFS] Fix bdev erases
authorJoern Engel <joern@logfs.org>
Thu, 4 Mar 2010 20:30:58 +0000 (21:30 +0100)
committerJoern Engel <joern@logfs.org>
Thu, 4 Mar 2010 20:30:58 +0000 (21:30 +0100)
commit9421502b4fc894cc477be8fc49776830e37ca157
tree9c9b1bfa42b2acdf4b5e080a256c3cd37852a94f
parent5c564c2a04d4bb6ba79eeb83bd06de584479f362
[LogFS] Fix bdev erases

Erases for block devices were always just emulated by writing 0xff.
Some time back the write was removed and only the page cache was
changed to 0xff.  Superficialy a good idea with two problems:
1. Touching the page cache isn't necessary either.
2. However, writing out 0xff _is_ necessary for the journal.  As the
   journal is scanned linearly, an old non-overwritten commit entry
   can be used on next mount and cause havoc.

This should fix both aspects.
fs/logfs/dev_bdev.c
fs/logfs/dev_mtd.c
fs/logfs/journal.c
fs/logfs/logfs.h
fs/logfs/segment.c
fs/logfs/super.c