public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Yan Zheng <zheng.yan@oracle.com>
To: Chris Mason <chris.mason@oracle.com>,
	Roel Kluin <roel.kluin@gmail.com>,
	linux-btrfs@vger.kernel.org,
	Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [PATCH] brtfs: less- and greater than confusion
Date: Mon, 13 Jul 2009 21:57:50 +0800	[thread overview]
Message-ID: <4A5B3D5E.2000604@oracle.com> (raw)
In-Reply-To: <20090713132631.GC4704@think>

On 07/13/2009 09:26 PM, Chris Mason wrote:
> [ sorry, fixed up cc ]
> 
> On Mon, Jul 13, 2009 at 09:22:52AM -0400, Chris Mason wrote:
>> On Mon, Jul 13, 2009 at 12:30:48AM +0200, Roel Kluin wrote:
>>> Without this the loop won't start
>>>
>>> Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
>>> ---
>>> diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
>>> index 3ab80e9..2c873c9 100644
>>> --- a/fs/btrfs/volumes.c
>>> +++ b/fs/btrfs/volumes.c
>>> @@ -2795,7 +2795,7 @@ int btrfs_rmap_block(struct btrfs_mapping_tree *map_tree,
>>>  		}
>>>  	}
>>>  
>>> -	for (i = 0; i > nr; i++) {
>>> +	for (i = 0; i < nr; i++) {
>>>  		struct btrfs_multi_bio *multi;
>>>  		struct btrfs_bio_stripe *stripe;
>>>  		int ret;
>> Thanks, this does look buggy.  That second loop should just be to verify
>> the first loop didn't mess things up.  Yan Zheng, is there any reason we
>> shouldn't delete it?
>>

It's OK to delete it.

Yan Zheng

  reply	other threads:[~2009-07-13 13:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-12 22:30 [PATCH] brtfs: less- and greater than confusion Roel Kluin
2009-07-13 13:22 ` Chris Mason
2009-07-13 13:26   ` Chris Mason
2009-07-13 13:57     ` Yan Zheng [this message]
2009-07-13 13:28   ` David Woodhouse
2009-07-13 13:43   ` Yan Zheng

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=4A5B3D5E.2000604@oracle.com \
    --to=zheng.yan@oracle.com \
    --cc=akpm@linux-foundation.org \
    --cc=chris.mason@oracle.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=roel.kluin@gmail.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