diff options
Diffstat (limited to 'fs/ext4/ext4_jbd2.c')
-rw-r--r-- | fs/ext4/ext4_jbd2.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/fs/ext4/ext4_jbd2.c b/fs/ext4/ext4_jbd2.c index 90f7c2e84db1..bfa65b49d424 100644 --- a/fs/ext4/ext4_jbd2.c +++ b/fs/ext4/ext4_jbd2.c | |||
@@ -138,8 +138,7 @@ int __ext4_handle_dirty_metadata(const char *where, unsigned int line, | |||
138 | } | 138 | } |
139 | 139 | ||
140 | int __ext4_handle_dirty_super(const char *where, unsigned int line, | 140 | int __ext4_handle_dirty_super(const char *where, unsigned int line, |
141 | handle_t *handle, struct super_block *sb, | 141 | handle_t *handle, struct super_block *sb) |
142 | int now) | ||
143 | { | 142 | { |
144 | struct buffer_head *bh = EXT4_SB(sb)->s_sbh; | 143 | struct buffer_head *bh = EXT4_SB(sb)->s_sbh; |
145 | int err = 0; | 144 | int err = 0; |
@@ -151,11 +150,10 @@ int __ext4_handle_dirty_super(const char *where, unsigned int line, | |||
151 | if (err) | 150 | if (err) |
152 | ext4_journal_abort_handle(where, line, __func__, | 151 | ext4_journal_abort_handle(where, line, __func__, |
153 | bh, handle, err); | 152 | bh, handle, err); |
154 | } else if (now) { | 153 | } else { |
155 | ext4_superblock_csum_set(sb, | 154 | ext4_superblock_csum_set(sb, |
156 | (struct ext4_super_block *)bh->b_data); | 155 | (struct ext4_super_block *)bh->b_data); |
157 | mark_buffer_dirty(bh); | 156 | mark_buffer_dirty(bh); |
158 | } else | 157 | } |
159 | sb->s_dirt = 1; | ||
160 | return err; | 158 | return err; |
161 | } | 159 | } |