public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: Alex Elder <aelder@sgi.com>
Cc: Christoph Hellwig <hch@infradead.org>, xfs@oss.sgi.com
Subject: Re: [PATCH 1/3] xfs: cleanup bmap extent state macros
Date: Mon, 14 Dec 2009 17:48:19 -0500	[thread overview]
Message-ID: <20091214224819.GA27432@infradead.org> (raw)
In-Reply-To: <1AB9A794DBDDF54A8A81BE2296F7BDFE012A6847@cf--amer001e--3.americas.sgi.com>

On Mon, Dec 14, 2009 at 03:29:45PM -0600, Alex Elder wrote:
> Christoph Hellwig wrote:
> > Cleanup the extent state macros in the bmap code to use one common set of
> > flags that we can pass to the tracing code later and remove a lot of the
> > macro obsfucation.
> 
> This looks good.  Although this was motivated by making this code fit into
> the tracing model better, I prefer the way the result looks anyway.
> 
> Your changes are nice, straightforward mapping from the old to the
> new.  In a couple of spots it might be slightly clearer to assign
> a mask temporary, e.g. replace something like:
> 	   if ((state & (BMAP_LEFT_CONTIG | BMAP_LEFT_FILLING |
> 		       BMAP_RIGHT_FILLING)) !=
> 		      (BMAP_LEFT_CONTIG | BMAP_LEFT_FILLING |
> 		       BMAP_RIGHT_FILLING))
> with
> 	   mask = BMAP_LEFT_CONTIG | BMAP_LEFT_FILLING | BMAP_RIGHT_FILLING;
> 	   if (state & mask != mask)
> Nevertheless, I'm glad you didn't make changes like that because
> it was easier to review this way.  Something to consider for later.

Yeah, pondered it, but it didn't look totally clean with the mask
either.  It's a all bit borderline.

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

      reply	other threads:[~2009-12-14 22:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-25  0:00 [PATCH 1/3] xfs: cleanup bmap extent state macros Christoph Hellwig
2009-12-14 21:29 ` Alex Elder
2009-12-14 22:48   ` Christoph Hellwig [this message]

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=20091214224819.GA27432@infradead.org \
    --to=hch@infradead.org \
    --cc=aelder@sgi.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