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>
This commit is contained in:
Theodore Ts'o 2009-03-27 22:14:27 -04:00
parent a64c8610bd
commit 512a004382
3 changed files with 22 additions and 8 deletions

View file

@ -552,6 +552,11 @@ struct transaction_s
*/
int t_handle_count;
/*
* This transaction is being forced and some process is
* waiting for it to finish.
*/
int t_synchronous_commit:1;
};
/**