From: Andi Kleen Date: Tue, 7 Oct 2008 01:37:44 +0000 (-0400) Subject: ext4: Avoid double dirtying of super block in ext4_put_super() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=39d80c33a068d9fa63a36c3b2c0d718d38440dd1;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ext4: Avoid double dirtying of super block in ext4_put_super() While reading code I noticed that ext4_put_super() dirties the superblock bh twice. It is always done in ext4_commit_super() too. Remove the redundant dirty operation. Should be a nop semantically. Signed-off-by: Andi Kleen --- diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 9c0214689de0..7d865608e817 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -512,8 +512,6 @@ static void ext4_put_super(struct super_block *sb) if (!(sb->s_flags & MS_RDONLY)) { EXT4_CLEAR_INCOMPAT_FEATURE(sb, EXT4_FEATURE_INCOMPAT_RECOVER); es->s_state = cpu_to_le16(sbi->s_mount_state); - BUFFER_TRACE(sbi->s_sbh, "marking dirty"); - mark_buffer_dirty(sbi->s_sbh); ext4_commit_super(sb, es, 1); } if (sbi->s_proc) {