* [patch 6/19] mark_buffer_dirty() speedup
@ 2002-06-17 6:51 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2002-06-17 6:51 UTC (permalink / raw)
To: Linus Torvalds; +Cc: lkml
mark_buffer_dirty() is showing up on Anton's graphs. Avoiding the
buslocked RMW if the buffer is already dirty should fix that up.
--- 2.5.22/fs/buffer.c~mark_buffer_dirty-speedup Sun Jun 16 22:50:17 2002
+++ 2.5.22-akpm/fs/buffer.c Sun Jun 16 23:22:47 2002
@@ -1218,7 +1218,7 @@ void mark_buffer_dirty(struct buffer_hea
{
if (!buffer_uptodate(bh))
buffer_error();
- if (!test_set_buffer_dirty(bh))
+ if (!buffer_dirty(bh) && !test_set_buffer_dirty(bh))
__set_page_dirty_nobuffers(bh->b_page);
}
-
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-06-17 6:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-17 6:51 [patch 6/19] mark_buffer_dirty() speedup Andrew Morton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox