xfs
[Top] [All Lists]

Re: [PATCH] bio allocation failure due to bio_get_nr_vecs()

To: Jeff Moyer <jmoyer@xxxxxxxxxx>
Subject: Re: [PATCH] bio allocation failure due to bio_get_nr_vecs()
From: Jens Axboe <axboe@xxxxxxxxx>
Date: Fri, 11 May 2012 16:36:04 +0200
Cc: Bernd Schubert <bernd.schubert@xxxxxxxxxxxxxxxxxx>, "linux-fsdevel@xxxxxxxxxxxxxxx" <linux-fsdevel@xxxxxxxxxxxxxxx>, linux-xfs@xxxxxxxxxxx, sandeen@xxxxxxxxxxx, Kent Overstreet <kent.overstreet@xxxxxxxxx>, Tejun Heo <tj@xxxxxxxxxx>
In-reply-to: <x49sjf6vml5.fsf@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
References: <jognqm$o21$1@xxxxxxxxxxxxxxx> <4FABF01E.7080303@xxxxxxxxxxxxxxxxxx> <4FAD18D4.3090102@xxxxxxxxxxxxxxxxxx> <x49sjf6vml5.fsf@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
On 05/11/2012 04:06 PM, Jeff Moyer wrote:
> Bernd Schubert <bernd.schubert@xxxxxxxxxxxxxxxxxx> writes:
> 
>> diff --git a/fs/bio.c b/fs/bio.c
>> index e453924..84da885 100644
>> --- a/fs/bio.c
>> +++ b/fs/bio.c
>> @@ -505,9 +505,14 @@ EXPORT_SYMBOL(bio_clone);
>>  int bio_get_nr_vecs(struct block_device *bdev)
>>  {
>>      struct request_queue *q = bdev_get_queue(bdev);
>> -    return min_t(unsigned,
>> +    int nr_pages;
> 
> Looks like a corrupt patch.

It's fine, I think you are misreading the added and removed lines :-)

-- 
Jens Axboe

<Prev in Thread] Current Thread [Next in Thread>