From: Andrew Morton <akpm@osdl.org>
To: r.w.maloy@acm.org
Cc: linux-kernel@vger.kernel.org
Subject: Re: Possible error in fs/buffer.c
Date: Thu, 1 Apr 2004 16:26:27 -0800 [thread overview]
Message-ID: <20040401162627.7b3f48c7.akpm@osdl.org> (raw)
In-Reply-To: <200404011043.49077.r.w.maloy@acm.org>
"Robert W. Maloy" <r.w.maloy@acm.org> wrote:
>
> While code surfing I found what appears to be a problem with the
> following code in fs/buffer.c {function mark_buffer_inode_dirty}:
>
> if (list_empty(&bh->b_assoc_buffers))
> buffer_insert_list(&buffer_mapping->private_lock,
> bh, &mapping->private_list);
This is saying "is the buffer is not on any list, then place it on the
mapping's list now. If the buffer _is_ already on some list then we know
it must already be on mapping->private_list, so we have nothing to do".
Re-dirtying an already-dirty buffer is an extremely common case, and here
we look for an opportunity to avoid dirtying a cacheline or two.
next prev parent reply other threads:[~2004-04-02 0:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-01 15:43 Robert W. Maloy
2004-04-02 0:26 ` Andrew Morton [this message]
2004-04-02 10:46 ` Robert W. Maloy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040401162627.7b3f48c7.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=r.w.maloy@acm.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®