Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 377631
b: refs/heads/master
c: fe52d17
h: refs/heads/master
i:
  377629: f1256f6
  377627: 8e21a79
  377623: 402ae9f
  377615: 0013b8c
  377599: 6bf9df4
v: v3
  • Loading branch information
Theodore Ts'o committed Jul 1, 2013
1 parent b5cbfdd commit f8981d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: aeb2817a4ea99f62532adf3377be3b282d3bda12
refs/heads/master: fe52d17cdd343ac43c85cf72940a58865b9d3bfb
3 changes: 2 additions & 1 deletion trunk/fs/jbd2/journal.c
Original file line number Diff line number Diff line change
Expand Up @@ -1335,6 +1335,7 @@ static int journal_reset(journal_t *journal)
static void jbd2_write_superblock(journal_t *journal, int write_op)
{
struct buffer_head *bh = journal->j_sb_buffer;
journal_superblock_t *sb = journal->j_superblock;
int ret;

trace_jbd2_write_superblock(journal, write_op);
Expand All @@ -1356,6 +1357,7 @@ static void jbd2_write_superblock(journal_t *journal, int write_op)
clear_buffer_write_io_error(bh);
set_buffer_uptodate(bh);
}
jbd2_superblock_csum_set(journal, sb);
get_bh(bh);
bh->b_end_io = end_buffer_write_sync;
ret = submit_bh(write_op, bh);
Expand Down Expand Up @@ -1452,7 +1454,6 @@ void jbd2_journal_update_sb_errno(journal_t *journal)
jbd_debug(1, "JBD2: updating superblock error (errno %d)\n",
journal->j_errno);
sb->s_errno = cpu_to_be32(journal->j_errno);
jbd2_superblock_csum_set(journal, sb);
read_unlock(&journal->j_state_lock);

jbd2_write_superblock(journal, WRITE_SYNC);
Expand Down

0 comments on commit f8981d7

Please sign in to comment.