summaryrefslogtreecommitdiffstats
path: root/fs/logfs/super.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* [LogFS] Prevent memory corruption on large deletesJoern Engel2010-04-131-0/+2
| | | | | | | | | | | | Removing sufficiently large files would create aliases for a large number of segments. This in turn results in a large number of journal entries and an overflow of s_je_array. Cheap fix is to add a BUG_ON, turning memory corruption into something annoying, but less dangerous. Real fix is to count the number of affected segments and prevent the problem completely. Signed-off-by: Joern Engel <joern@logfs.org>
* Use deactivate_locked_superJoern Engel2010-03-271-2/+1
| | | | | | Found by Al Viro. Signed-off-by: Joern Engel <joern@logfs.org>
* Fix logfs_get_sb_final error pathJoern Engel2010-03-271-1/+1
| | | | | | | rootdir was already allocated, so we must iput it again. Found by Al Viro. Signed-off-by: Joern Engel <joern@logfs.org>
* Write out both superblocks on mismatchJoern Engel2010-03-271-1/+1
| | | | | | | | If the first superblock is wrong and the second gets written, there will still be a mismatch on next mount. Write both to make sure they match. Signed-off-by: Joern Engel <joern@logfs.org>
* Open segment file before using itJoern Engel2010-03-271-4/+4
| | | | | | logfs_recover_sb() needs it open. Signed-off-by: Joern Engel <joern@logfs.org>
* [LogFS] Check feature flagsJoern Engel2010-03-051-2/+8
|
* [LogFS] Only write journal if dirtyJoern Engel2010-03-041-1/+1
| | | | | This prevents unnecessary journal writes. More importantly it prevents an oops due to a journal write on failed mount.
* [LogFS] Fix bdev erasesJoern Engel2010-03-041-1/+11
| | | | | | | | | | | | 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.
* [LogFS] add new flash file systemJoern Engel2009-11-201-0/+634
This is a new flash file system. See Documentation/filesystems/logfs.txt Signed-off-by: Joern Engel <joern@logfs.org>