Skip to contentSkip to conversation

ext4: remove useless s_dirt assignment

PATCH New Artem Bityutskiy 1 participant 1 message Mar 19, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ext4: remove useless s_dirt assignment

From: Artem Bityutskiy <[email protected]>

Clean-up ext4 a tiny bit by removing useless s_dirt assignment in 'ext4_fill_super()' because a bit later we anyway call 'ext4_setup_super()' which writes the superblock to the media unconditionally.

I would not bother removing the assignment, but I am prepare the code for further s_dirt clean-ups.

---
 fs/ext4/super.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
fs/ext4/super.c +0 -1
index c1f5111..d280bb6 100644
@@ -3415,7 +3415,6 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent)
 #else
 		es->s_flags |= cpu_to_le32(EXT2_FLAGS_SIGNED_HASH);
 #endif
-		sb->s_dirt = 1;
 	}
 
 	/* Handle clustersize */
Signature · 1 line
1.7.7.6