diff options
author | Theodore Ts'o <tytso@mit.edu> | 2009-12-23 12:52:08 +0100 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2009-12-23 12:52:08 +0100 |
commit | cc3e1bea5d87635c519da657303690f5538bb4eb (patch) | |
tree | 727b348d0389a2fe6618fb224fe1d81d207668c4 /fs/ext4/super.c | |
parent | ext4: replace BUG() with return -EIO in ext4_ext_get_blocks (diff) | |
download | linux-cc3e1bea5d87635c519da657303690f5538bb4eb.tar.xz linux-cc3e1bea5d87635c519da657303690f5538bb4eb.zip |
ext4, jbd2: Add barriers for file systems with exernal journals
This is a bit complicated because we are trying to optimize when we
send barriers to the fs data disk. We could just throw in an extra
barrier to the data disk whenever we send a barrier to the journal
disk, but that's not always strictly necessary.
We only need to send a barrier during a commit when there are data
blocks which are must be written out due to an inode written in
ordered mode, or if fsync() depends on the commit to force data blocks
to disk. Finally, before we drop transactions from the beginning of
the journal during a checkpoint operation, we need to guarantee that
any blocks that were flushed out to the data disk are firmly on the
rust platter before we drop the transaction from the journal.
Thanks to Oleg Drokin for pointing out this flaw in ext3/ext4.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/super.c')
0 files changed, 0 insertions, 0 deletions