Re: [PATCH 3/4] btrfs: introduce new read_policy device

Anand Jain
2020-10-29T02:00:06Z

>> +static int btrfs_find_read_preferred(struct map_lookup *map, int
>> first, int num_stripe)
>> +{
>> +    int stripe_index;
>> +    int last = first + num_stripe;
>> +
>> +    /*
>> +     * If there are more than one read preferred devices, then just
>> pick the
>> +     * first found read preferred device as of now.
>> +     */
>> +    for (stripe_index = first; stripe_index < last; stripe_index++) {
>> +        if (test_bit(BTRFS_DEV_STATE_READ_PREFERRED,
>> +                 &map->stripes[stripe_index].dev->dev_state))
>> +            return stripe_index;
>> +        }
>
> b4 isn't working for me because these patches didn't make it to
> linux-btrfs proper for some reason,

Yep. Since yday I am getting email delivery failure.

-----
for recipient address <linux-block@vger.kernel.org> the policy analysis
reported: zpostgrey: connect: Connection refused
-----

> so I could be wrong here, but it
> looks like this } is off?  There's spaces here instead of a tab maybe?

> If not then just ignore me. Thanks,
Yeah tab is ok. Its just in the email.

Thanks, Anand

> Josef