Re: [PATCH] brtfs: less- and greater than confusion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2009/7/13 Chris Mason <chris.mason@xxxxxxxxxx>:
> 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@xxxxxxxxx>
>> ---
>> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux