ext3: Use WRITE_SYNC for commits which are caused by fsync()
[safe/jmp/linux-2.6] / fs / jbd / transaction.c
index e6a1174..ed886e6 100644 (file)
@@ -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);