From: Christoph Hellwig <hch@infradead.org>
To: Dave Chinner <david@fromorbit.com>
Cc: xfs@oss.sgi.com
Subject: Re: XFS metadata flushing design - current and future
Date: Mon, 29 Aug 2011 02:33:42 -0400 [thread overview]
Message-ID: <20110829063342.GA26346@infradead.org> (raw)
In-Reply-To: <20110829010149.GE3162@dastard>
On Mon, Aug 29, 2011 at 11:01:49AM +1000, Dave Chinner wrote:
> Right, that's how buffers are flushed, but for some metadata there
> is a layer above this - the in-memory object that needs to be
> flushed to the buffer before the buffer can be written. Inodes and
> dquots fall into this category, so describing how they are flushed
> would also be a good idea. something like:
Sounds fine.
> Delwri means the object is locked and written to the backing buffer,
> and the buffer is then written via it's delwri mechanism. The object
> remains locked (and so cannot be written to the buffer again) until
> the backing buffer is written to disk and marked clean. This allows
> multiple objects in the one buffer to be written at different times
> but be cleaned in a single buffer IO.
Locked is a bit to simple here - we keep the flush lock, but not the
main object lock.
> > inodes marked dirty directly using xfs_iflush.
> >
> > The quotacheck code marks dquots dirty, just to flush them at the end of
> > the quotacheck operation.
>
> This is safe because the filesystem isn't "open for business" until
> the quotacheck completes. The quotacheck needed flags aren't cleared
> until all the updates are on disk, so this doesn't need tobe done
> transactionally.
Yes, it's safe - but another different layer of dirty metadata to track.
> >
> > We should get rid of both the reliance of the VFS writeback tracking, and
> > XFS-internal non-AIL metadata flushing.
>
> I'm assuming you mean VFS level dirty inode writeback tracking, not
> dirty page cache tracking?
Yes, I'll clarify it.
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
next prev parent reply other threads:[~2011-08-29 6:33 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-27 8:03 XFS metadata flushing design - current and future Christoph Hellwig
2011-08-29 1:01 ` Dave Chinner
2011-08-29 6:33 ` Christoph Hellwig [this message]
2011-08-29 12:33 ` Christoph Hellwig
2011-08-30 1:28 ` Dave Chinner
2011-08-30 5:09 ` Christoph Hellwig
2011-08-30 7:06 ` Dave Chinner
2011-08-30 7:10 ` Christoph Hellwig
2011-09-09 22:31 ` Stewart Smith
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=20110829063342.GA26346@infradead.org \
--to=hch@infradead.org \
--cc=david@fromorbit.com \
--cc=xfs@oss.sgi.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox