All of lore.kernel.org
 help / color / mirror / Atom feed
From: V Ganesh <ganesh@veritas.com>
To: 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:17:30 +0530 (IST)	[thread overview]
Message-ID: <200101251047.QAA16434@vxindia.veritas.com> (raw)

Stephen C. Tweedie <sct@redhat.com> wrote:
: Hi,

: On Wed, Jan 24, 2001 at 03:25:16PM +0530, V Ganesh wrote:
:> now that we have inode->i_mapping->dirty_pages, what do we need
:> inode->i_dirty_buffers for ?

: Metadata.  Specifically, directory contents and indirection blocks.

: --Stephen

ah, mark_buffer_dirty_inode(). thanks.
so if I understand it,
1. read() and mmap read faults will put the page in i_mapping->clean_pages
2. mmaped writes will (eventually, from msync or unmap or swapout) put the
   page in i_mapping->dirty_pages
3. write() will put pages into i_dirty_buffers (__block_commit_write() calls
   buffer_insert_inode_queue()).

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.

ganesh
-
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/

             reply	other threads:[~2001-01-25 10:49 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-25 10:47 V Ganesh [this message]
2001-01-25 16:44 ` inode->i_dirty_buffers redundant ? Stephen C. Tweedie
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=200101251047.QAA16434@vxindia.veritas.com \
    --to=ganesh@veritas.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo@conectiva.com.br \
    --cc=sct@redhat.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.