diff options
author | Theodore Ts'o <tytso@mit.edu> | 2009-03-28 03:14:27 +0100 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2009-03-28 03:14:27 +0100 |
commit | 512a004382f2c60d5c4f855476ba965adc00250c (patch) | |
tree | e0ecfce01aab892a415b95d6d4c8c5a8bd033a49 /fs/jbd/transaction.c | |
parent | block_write_full_page: Use synchronous writes for WBC_SYNC_ALL writebacks (diff) | |
download | linux-512a004382f2c60d5c4f855476ba965adc00250c.tar.xz linux-512a004382f2c60d5c4f855476ba965adc00250c.zip |
ext3: Use WRITE_SYNC for commits which are caused by fsync()
If a commit is triggered by fsync(), set a flag indicating the journal
blocks associated with the transaction should be flushed out using
WRITE_SYNC.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Acked-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/jbd/transaction.c')
-rw-r--r-- | fs/jbd/transaction.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/jbd/transaction.c b/fs/jbd/transaction.c index e6a117431277..ed886e6db399 100644 --- a/fs/jbd/transaction.c +++ b/fs/jbd/transaction.c @@ -1440,6 +1440,8 @@ int journal_stop(handle_t *handle) } } + if (handle->h_sync) + transaction->t_synchronous_commit = 1; current->journal_info = NULL; spin_lock(&journal->j_state_lock); spin_lock(&transaction->t_handle_lock); |