Commit 1b8b9750 authored by Artem Bityutskiy's avatar Artem Bityutskiy Committed by Theodore Ts'o
Browse files

ext4: do not mark superblock as dirty unnecessarily

Commit a0375156

 cleaned up superblock
dirtying handling, but missed one place. This patch does what was
intended: if we have the journal, then we update the superblock
through the journal rather than doing this directly.

Signed-off-by: default avatarArtem Bityutskiy <>
Signed-off-by: default avatar"Theodore Ts'o" <>
parent 73355192
......@@ -3935,10 +3935,8 @@ static int ext4_do_update_inode(handle_t *handle,
sb->s_dirt = 1;
err = ext4_handle_dirty_metadata(handle, NULL,
err = ext4_handle_dirty_super(handle, sb);
raw_inode->i_generation = cpu_to_le32(inode->i_generation);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment