* [PATCH] EXT4: Avoid double dirtying of super block in ext4_put_super()
@ 2008-10-06 21:21 Andi Kleen
2008-10-06 23:39 ` Theodore Tso
0 siblings, 1 reply; 2+ messages in thread
From: Andi Kleen @ 2008-10-06 21:21 UTC (permalink / raw)
To: tytso, linux-ext4
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>
diff -up linux-2.6.27-rc6-csum/fs/ext4/super.c-o linux-2.6.27-rc6-csum/fs/ext4/super.c
--- linux-2.6.27-rc6-csum/fs/ext4/super.c-o 2008-08-29 10:10:08.000000000 +0200
+++ linux-2.6.27-rc6-csum/fs/ext4/super.c 2008-10-06 11:24:31.000000000 +0200
@@ -508,8 +509,6 @@
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);
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] EXT4: Avoid double dirtying of super block in ext4_put_super()
2008-10-06 21:21 [PATCH] EXT4: Avoid double dirtying of super block in ext4_put_super() Andi Kleen
@ 2008-10-06 23:39 ` Theodore Tso
0 siblings, 0 replies; 2+ messages in thread
From: Theodore Tso @ 2008-10-06 23:39 UTC (permalink / raw)
To: Andi Kleen; +Cc: linux-ext4
On Mon, Oct 06, 2008 at 11:21:18PM +0200, Andi Kleen wrote:
> 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>
As it turns out, I had taken out the mark_buffer_dirty as superfluous
in the following patch:
ext4/jbd2: Avoid WARN() messages when failing to write to the superblock
(This was Arjan's favorite ext3/ext4 top-ten kerneloops.org bug).
However I didn't kill the BUFFER_TRACE(sbi->s_sbh, "marking dirty");
line, which should have been deleted too. I'll take out the change
from my patch since it's really unrelated to fixing the kerneloops.org
WARN'ing, and take your patch and it include it for submission to
Linus in the ext3 tree.
Thanks,
- Ted
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-10-06 23:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-06 21:21 [PATCH] EXT4: Avoid double dirtying of super block in ext4_put_super() Andi Kleen
2008-10-06 23:39 ` Theodore Tso
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox