From: Christoph Hellwig <hch@infradead.org>
To: Chandra Seetharaman <sekharan@us.ibm.com>
Cc: Christoph Hellwig <hch@infradead.org>, xfs@oss.sgi.com
Subject: Re: [PATCH 02/12] xfs: Remove the macro XFS_BUF_ZEROFLAGS
Date: Fri, 22 Jul 2011 11:18:05 -0400 [thread overview]
Message-ID: <20110722151805.GE30317@infradead.org> (raw)
In-Reply-To: <1311269391.3210.956.camel@chandra-lucid.beaverton.ibm.com>
On Thu, Jul 21, 2011 at 10:29:51AM -0700, Chandra Seetharaman wrote:
> > > XFS_BUF_SET_COUNT(bp, count);
> > > XFS_BUF_SET_FSPRIVATE(bp, iclog); /* save for later */
> > > - XFS_BUF_ZEROFLAGS(bp);
> > > + bp->b_flags &= ~(XBF_READ|XBF_WRITE|XBF_ASYNC|XBF_DELWRI|XBF_ORDERED);
> > > XFS_BUF_BUSY(bp);
> > > XFS_BUF_ASYNC(bp);
> > > bp->b_flags |= XBF_LOG_BUFFER;
> >
> > Note that XBF_ORDERED is gone in the current tree, you need to rebase
> > your patches to pick up the buffer changes I recently sent out.
> >
> > I don't link this blind expansion. For one all that flag setting is
> > duplicated in two places in xlog_sync, please send a patch to
> > consolidate it in xlog_bdstrat. Second XBF_READ and XBF_DELWRI
>
> The two places are using 2 different bps, how do you want it to be
> consolidated in xlog_bdstrat() ?
xlog_bdstrate is called for both buffers, so any code that's the same
for both can be moved into it. If you don't want to go down to that
level just leave the macro in for your next series, and I'll fix it
later.
> It looks cleaner if I just have those flags cleared above, instead of
> conditionally clearing them, what do you think ?
I don't really care either way.
> > XBF_READ, XBF_WRITE, XBF_ASYNC and XBF_DELWRI already get dealt with
> > in xfs_bwrite a few lines down, and XBF_ORDERED can't be set here. IOW
> > this line can simply be removed.
>
> New definition of XFS_BUF_ZEROFLAGS has these: XBF_SYNCIO, XBF_FUA, and
> XBF_FLUSH. In this context is it ok to not clear those ?
Yes, all these are only ever set on log buffers.
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
next prev parent reply other threads:[~2011-07-22 15:18 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-16 1:21 [PATCH 00/12] Remove number of macros from xfs_buf.h Chandra Seetharaman
2011-07-16 1:21 ` [PATCH 01/12] xfs: Remove the macro XFS_BUF_BFLAGS Chandra Seetharaman
2011-07-16 1:54 ` Christoph Hellwig
2011-07-19 1:36 ` Chandra Seetharaman
2011-07-16 1:21 ` [PATCH 02/12] xfs: Remove the macro XFS_BUF_ZEROFLAGS Chandra Seetharaman
2011-07-16 1:59 ` Christoph Hellwig
2011-07-21 17:29 ` Chandra Seetharaman
2011-07-22 15:18 ` Christoph Hellwig [this message]
2011-07-16 1:21 ` [PATCH 03/12] xfs: Remove the macro XFS_BUF_ERROR and family Chandra Seetharaman
2011-07-16 2:00 ` Christoph Hellwig
2011-07-16 1:21 ` [PATCH 04/12] xfs: Remove macro XFS_BUF_BUSY " Chandra Seetharaman
2011-07-16 2:01 ` Christoph Hellwig
2011-07-16 1:21 ` [PATCH 05/12] xfs: Remove macro XFS_BUF_HOLD Chandra Seetharaman
2011-07-16 2:01 ` Christoph Hellwig
2011-07-16 1:21 ` [PATCH 06/12] xfs: Remove macro XFS_BUF_SET_START Chandra Seetharaman
2011-07-16 16:17 ` Christoph Hellwig
2011-07-16 1:21 ` [PATCH 07/12] xfs: Remove the macro XFS_BUF_PTR Chandra Seetharaman
2011-07-16 17:03 ` Christoph Hellwig
2011-07-16 1:21 ` [PATCH 08/12] xfs: Remove the macro XFS_BUF_SET_PTR Chandra Seetharaman
2011-07-16 16:44 ` Christoph Hellwig
2011-07-16 1:21 ` [PATCH 09/12] Replace the macro XFS_BUF_ISPINNED with helper xfs_buf_ispinned Chandra Seetharaman
2011-07-16 2:05 ` Christoph Hellwig
2011-07-16 1:22 ` [PATCH 10/12] xfs: Remove the macro XFS_BUF_SET_TARGET Chandra Seetharaman
2011-07-16 2:06 ` Christoph Hellwig
2011-07-16 1:22 ` [PATCH 11/12] xfs: Remove the macro XFS_BUF_TARGET Chandra Seetharaman
2011-07-16 2:06 ` Christoph Hellwig
2011-07-16 1:22 ` [PATCH 12/12] xfs: Remove the macro XFS_BUFTARG_NAME Chandra Seetharaman
2011-07-16 2:06 ` Christoph Hellwig
-- strict thread matches above, loose matches on Subject: below --
2011-07-22 0:32 [PATCH 00/12] Remove number of macros from xfs_buf.h Chandra Seetharaman
2011-07-22 0:32 ` [PATCH 02/12] xfs: Remove the macro XFS_BUF_ZEROFLAGS Chandra Seetharaman
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=20110722151805.GE30317@infradead.org \
--to=hch@infradead.org \
--cc=sekharan@us.ibm.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