aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4
diff options
context:
space:
mode:
authorAndi Kleen <andi@firstfloor.org>2008-10-06 21:37:44 -0400
committerTheodore Ts'o <tytso@mit.edu>2008-10-06 21:37:44 -0400
commit39d80c33a068d9fa63a36c3b2c0d718d38440dd1 (patch)
tree6110ca4101f533ced0db2fe18a7834cd8304f0a3 /fs/ext4
parent08a225f143bf3415fef6f3360d922be35da40543 (diff)
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 <ak@linux.intel.com>
Diffstat (limited to 'fs/ext4')
-rw-r--r--fs/ext4/super.c2
1 files changed, 0 insertions, 2 deletions
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)
512 if (!(sb->s_flags & MS_RDONLY)) { 512 if (!(sb->s_flags & MS_RDONLY)) {
513 EXT4_CLEAR_INCOMPAT_FEATURE(sb, EXT4_FEATURE_INCOMPAT_RECOVER); 513 EXT4_CLEAR_INCOMPAT_FEATURE(sb, EXT4_FEATURE_INCOMPAT_RECOVER);
514 es->s_state = cpu_to_le16(sbi->s_mount_state); 514 es->s_state = cpu_to_le16(sbi->s_mount_state);
515 BUFFER_TRACE(sbi->s_sbh, "marking dirty");
516 mark_buffer_dirty(sbi->s_sbh);
517 ext4_commit_super(sb, es, 1); 515 ext4_commit_super(sb, es, 1);
518 } 516 }
519 if (sbi->s_proc) { 517 if (sbi->s_proc) {