public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Dave Chinner <david@fromorbit.com>
To: Christoph Hellwig <hch@lst.de>
Cc: xfs@oss.sgi.com
Subject: Re: [PATCH 07/15] refactor xfs_btree_readahead
Date: Fri, 25 Jul 2008 09:36:55 +1000	[thread overview]
Message-ID: <20080724233655.GH15438@disturbed> (raw)
In-Reply-To: <20080723200859.GH7401@lst.de>

On Wed, Jul 23, 2008 at 10:08:59PM +0200, Christoph Hellwig wrote:
> From: Dave Chinner <dgc@sgi.com>

Can i review my own code? ;)

> Refactor xfs_btree_readahead to make it more readable:
> 
>  (a) remove the inline xfs_btree_readahead wrapper and move all checks out
>      of line into the main routine.
>  (b) factor out helpers for short/long form btrees
>  (c) move check for root in inodes from the callers into xfs_btree_readahead
> 
> 
> [hch: split out from a big patch and minor cleanups]
> 
> 
> Signed-off-by: Christoph Hellwig <hch@lst.de>
> 
> Index: linux-2.6-xfs/fs/xfs/xfs_btree.c
> ===================================================================
> --- linux-2.6-xfs.orig/fs/xfs/xfs_btree.c	2008-07-11 11:13:15.000000000 +0200
> +++ linux-2.6-xfs/fs/xfs/xfs_btree.c	2008-07-11 11:13:20.000000000 +0200
> @@ -709,66 +709,84 @@ xfs_btree_reada_bufs(
>  	xfs_baread(mp->m_ddev_targp, d, mp->m_bsize * count);
>  }
>  
> +STATIC int
> +xfs_btree_reada_corel(

I've been wondering if this is the best naming convention -
appending a single s or l to indicate short or long btree ops.
Perhaps this would be better as xfs_btree_readahead_short() and
xfs_btree_readahead_long(), esp. as we dropped the 'core' from
the caller to make it xfs_btree_readahead().

Otherwise it looks good.

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com

  reply	other threads:[~2008-07-24 23:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-23 20:08 [PATCH 07/15] refactor xfs_btree_readahead Christoph Hellwig
2008-07-24 23:36 ` Dave Chinner [this message]
2008-07-25  4:14   ` Christoph Hellwig
2008-07-28 15:39   ` Christoph Hellwig
2008-07-30  7:35     ` Dave Chinner

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=20080724233655.GH15438@disturbed \
    --to=david@fromorbit.com \
    --cc=hch@lst.de \
    --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