aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jbd
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2010-04-15 16:24:26 -0400
committerJan Kara <jack@suse.cz>2010-05-21 13:30:41 -0400
commit5277970878a32e437b27296e34c592e5d351f11d (patch)
tree64f41152b95e670935192ee6061653d922b642f3 /fs/jbd
parent03f4d804a1b4748885dc4613a4afe10089a731c8 (diff)
ext3: Fix waiting on transaction during fsync
log_start_commit() returns 1 only when it started a transaction commit. Thus in case transaction commit is already running, we fail to wait for the commit to finish. Fix the issue by always waiting for the commit regardless of the log_start_commit return value. Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/jbd')
-rw-r--r--fs/jbd/journal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/jbd/journal.c b/fs/jbd/journal.c
index 99c71940155a..93d1e47647bd 100644
--- a/fs/jbd/journal.c
+++ b/fs/jbd/journal.c
@@ -594,7 +594,7 @@ out:
594 spin_unlock(&journal->j_state_lock); 594 spin_unlock(&journal->j_state_lock);
595 return ret; 595 return ret;
596} 596}
597EXPORT_SYMBOL(journal_commit_will_send_barrier); 597EXPORT_SYMBOL(journal_trans_will_send_data_barrier);
598 598
599/* 599/*
600 * Log buffer allocation routines: 600 * Log buffer allocation routines: