From: "Stephen C. Tweedie" <sct@redhat.com>
To: V Ganesh <ganesh@veritas.com>
Cc: linux-kernel@vger.kernel.org, marcelo@conectiva.com.br, sct@redhat.com
Subject: Re: inode->i_dirty_buffers redundant ?
Date: Thu, 25 Jan 2001 16:44:32 +0000 [thread overview]
Message-ID: <20010125164432.A12984@redhat.com> (raw)
In-Reply-To: <200101251047.QAA16434@vxindia.veritas.com>
In-Reply-To: <200101251047.QAA16434@vxindia.veritas.com>; from ganesh@veritas.com on Thu, Jan 25, 2001 at 04:17:30PM +0530
Hi,
On Thu, Jan 25, 2001 at 04:17:30PM +0530, V Ganesh wrote:
> so i_dirty_buffers contains buffer_heads of pages coming from write() as
> well as metadata buffers from mark_buffer_dirty_inode(). a dirty MAP_SHARED
> page which has been write()n to will potentially exist in both lists.
> won't doing a set_dirty_page() instead of buffer_insert_inode_queue() in
> __block_commit_write() make things much simpler ? then we'd have i_dirty_buffers
> having _only_ metadata, and all data pages in the i_mapping->*_pages lists.
That would only complicate things: it would mean we'd have to scan
both lists on fsync instead of just the one, for example. There are a
number of places where we need buffer lists for dirty data anyway,
such as for bdflush's background sync to disk. We also maintain the
per-page buffer lists as caches of the virtual-to-physical mapping to
avoid redundant bmap()ping. So, removing the buffer_heads which alias
the page cache data isn't an option. Given that, it's as well to keep
all the inode's dirty buffers in the one place.
Cheers,
Stephen
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
next prev parent reply other threads:[~2001-01-25 16:48 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-01-25 10:47 inode->i_dirty_buffers redundant ? V Ganesh
2001-01-25 16:44 ` Stephen C. Tweedie [this message]
2001-01-25 20:05 ` Daniel Phillips
2001-01-25 21:30 ` Marcelo Tosatti
2001-01-26 11:35 ` Stephen C. Tweedie
2001-01-26 19:05 ` Daniel Phillips
2001-01-25 21:11 ` Marcelo Tosatti
2001-01-26 17:34 ` Stephen C. Tweedie
-- strict thread matches above, loose matches on Subject: below --
2001-01-26 9:13 V Ganesh
2001-01-24 9:55 V Ganesh
2001-01-24 9:09 ` Marcelo Tosatti
2001-01-24 11:26 ` Stephen C. Tweedie
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=20010125164432.A12984@redhat.com \
--to=sct@redhat.com \
--cc=ganesh@veritas.com \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo@conectiva.com.br \
/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