xfs
[Top] [All Lists]

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

To: Bernd Schubert <bernd.schubert@xxxxxxxxxxxxxxxxxx>
Subject: Re: [PATCH] bio allocation failure due to bio_get_nr_vecs()
From: Jeff Moyer <jmoyer@xxxxxxxxxx>
Date: Fri, 11 May 2012 10:06:30 -0400
Cc: "linux-fsdevel\@vger.kernel.org" <linux-fsdevel@xxxxxxxxxxxxxxx>, linux-xfs@xxxxxxxxxxx, sandeen@xxxxxxxxxxx, Kent Overstreet <kent.overstreet@xxxxxxxxx>, Tejun Heo <tj@xxxxxxxxxx>, Jens Axboe <axboe@xxxxxxxxx>
In-reply-to: <4FAD18D4.3090102@xxxxxxxxxxxxxxxxxx> (Bernd Schubert's message of "Fri, 11 May 2012 15:49:08 +0200")
References: <jognqm$o21$1@xxxxxxxxxxxxxxx> <4FABF01E.7080303@xxxxxxxxxxxxxxxxxx> <4FAD18D4.3090102@xxxxxxxxxxxxxxxxxx>
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)
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.

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