From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jens Axboe Subject: Re: [PATCH] bio allocation failure due to bio_get_nr_vecs() Date: Fri, 11 May 2012 16:36:04 +0200 Message-ID: <4FAD23D4.2070405@kernel.dk> References: <4FABF01E.7080303@itwm.fraunhofer.de> <4FAD18D4.3090102@itwm.fraunhofer.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Bernd Schubert , "linux-fsdevel@vger.kernel.org" , linux-xfs@oss.sgi.com, sandeen@sandeen.net, Kent Overstreet , Tejun Heo To: Jeff Moyer Return-path: Received: from merlin.infradead.org ([205.233.59.134]:45660 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758459Ab2EKOgZ (ORCPT ); Fri, 11 May 2012 10:36:25 -0400 In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On 05/11/2012 04:06 PM, Jeff Moyer wrote: > Bernd Schubert 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id q4BEaNET037525 for ; Fri, 11 May 2012 09:36:23 -0500 Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by cuda.sgi.com with ESMTP id npog07am2N73hxBE (version=TLSv1 cipher=AES256-SHA bits=256 verify=NO) for ; Fri, 11 May 2012 07:36:22 -0700 (PDT) Message-ID: <4FAD23D4.2070405@kernel.dk> Date: Fri, 11 May 2012 16:36:04 +0200 From: Jens Axboe MIME-Version: 1.0 Subject: Re: [PATCH] bio allocation failure due to bio_get_nr_vecs() References: <4FABF01E.7080303@itwm.fraunhofer.de> <4FAD18D4.3090102@itwm.fraunhofer.de> In-Reply-To: List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: xfs-bounces@oss.sgi.com Errors-To: xfs-bounces@oss.sgi.com To: Jeff Moyer Cc: linux-xfs@oss.sgi.com, sandeen@sandeen.net, Bernd Schubert , Tejun Heo , "linux-fsdevel@vger.kernel.org" , Kent Overstreet On 05/11/2012 04:06 PM, Jeff Moyer wrote: > Bernd Schubert 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 _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs