summaryrefslogtreecommitdiffstats
path: root/fs/jbd2/commit.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2009-01-05 01:55:57 +0100
committerTheodore Ts'o <tytso@mit.edu>2009-01-05 01:55:57 +0100
commit40a1984d22294ab202f616e432bb8d3481897675 (patch)
tree42d9970637c0c26b723b51115a6a290d8761eb8e /fs/jbd2/commit.c
parentjbd2: Add pid and journal device name to the "kjournald2 starting" message (diff)
downloadlinux-40a1984d22294ab202f616e432bb8d3481897675.tar.xz
linux-40a1984d22294ab202f616e432bb8d3481897675.zip
jbd2: Submit writes to the journal using WRITE_SYNC
Since we will be waiting the write of the commit record to the journal to complete in journal_submit_commit_record(), submit it using WRITE_SYNC. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/jbd2/commit.c')
-rw-r--r--fs/jbd2/commit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/jbd2/commit.c b/fs/jbd2/commit.c
index 0ad84162c425..073124a29b8c 100644
--- a/fs/jbd2/commit.c
+++ b/fs/jbd2/commit.c
@@ -138,7 +138,7 @@ static int journal_submit_commit_record(journal_t *journal,
set_buffer_ordered(bh);
barrier_done = 1;
}
- ret = submit_bh(WRITE, bh);
+ ret = submit_bh(WRITE_SYNC, bh);
if (barrier_done)
clear_buffer_ordered(bh);
@@ -159,7 +159,7 @@ static int journal_submit_commit_record(journal_t *journal,
lock_buffer(bh);
set_buffer_uptodate(bh);
clear_buffer_dirty(bh);
- ret = submit_bh(WRITE, bh);
+ ret = submit_bh(WRITE_SYNC, bh);
}
*cbh = bh;
return ret;