diff options
author | Jan Kara <jack@suse.cz> | 2012-03-13 15:41:04 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2012-03-13 15:41:04 -0400 |
commit | 24bcc89c7e7c64982e6192b4952a0a92379fc341 (patch) | |
tree | 0661b6c83fa9bb681f3aa32264323ce96c264958 /fs/jbd2/checkpoint.c | |
parent | 31d4f3a2f3c73f279ff96a7135d7202ef6833f12 (diff) |
jbd2: split updating of journal superblock and marking journal empty
There are three case of updating journal superblock. In the first case, we want
to mark journal as empty (setting s_sequence to 0), in the second case we want
to update log tail, in the third case we want to update s_errno. Split these
cases into separate functions. It makes the code slightly more straightforward
and later patches will make the distinction even more important.
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/jbd2/checkpoint.c')
-rw-r--r-- | fs/jbd2/checkpoint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/jbd2/checkpoint.c b/fs/jbd2/checkpoint.c index 253e91890e71..19dcd0b86bca 100644 --- a/fs/jbd2/checkpoint.c +++ b/fs/jbd2/checkpoint.c | |||
@@ -550,7 +550,7 @@ int jbd2_cleanup_journal_tail(journal_t *journal) | |||
550 | (journal->j_flags & JBD2_BARRIER)) | 550 | (journal->j_flags & JBD2_BARRIER)) |
551 | blkdev_issue_flush(journal->j_fs_dev, GFP_KERNEL, NULL); | 551 | blkdev_issue_flush(journal->j_fs_dev, GFP_KERNEL, NULL); |
552 | if (!(journal->j_flags & JBD2_ABORT)) | 552 | if (!(journal->j_flags & JBD2_ABORT)) |
553 | jbd2_journal_update_superblock(journal, 1); | 553 | jbd2_journal_update_sb_log_tail(journal); |
554 | return 0; | 554 | return 0; |
555 | } | 555 | } |
556 | 556 | ||