summaryrefslogtreecommitdiff
path: root/inotail.h
AgeCommit message (Expand)AuthorFilesLines
2006-08-20Indent clenaupTobias Klauser1-2/+2
2006-08-12Added ignore flag to struct file_structTobias Klauser1-4/+6
2006-07-17Clean up header and remove ignore field in file_struct (as not really needed ...Tobias Klauser1-14/+1
2006-07-01Further cleanupTobias Klauser1-3/+0
2006-07-01CleanupTobias Klauser1-2/+6
2006-05-11simpletail is the new inotailTobias Klauser1-4/+4
2006-03-13Initial importTobias Klauser1-0/+37
2d15cc819a4117a447b11ea7'>fs/jbd2/recovery.c parenta78bb11d7acd525623c6a0c2ff4e213d527573fa (diff)
jbd2: issue cache flush after checkpointing even with internal journal
When we reach jbd2_cleanup_journal_tail(), there is no guarantee that checkpointed buffers are on a stable storage - especially if buffers were written out by jbd2_log_do_checkpoint(), they are likely to be only in disk's caches. Thus when we update journal superblock effectively removing old transaction from journal, this write of superblock can get to stable storage before those checkpointed buffers which can result in filesystem corruption after a crash. Thus we must unconditionally issue a cache flush before we update journal superblock in these cases. A similar problem can also occur if journal superblock is written only in disk's caches, other transaction starts reusing space of the transaction cleaned from the log and power failure happens. Subsequent journal replay would still try to replay the old transaction but some of it's blocks may be already overwritten by the new transaction. For this reason we must use WRITE_FUA when updating log tail and we must first write new log tail to disk and update in-memory information only after that. Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/jbd2/recovery.c')