Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751799AbaDVFUF (ORCPT ); Tue, 22 Apr 2014 01:20:05 -0400 Received: from mailrelay001.isp.belgacom.be ([195.238.6.51]:7836 "EHLO mailrelay001.isp.belgacom.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751155AbaDVFUA (ORCPT ); Tue, 22 Apr 2014 01:20:00 -0400 X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AogTAOP6VVNXQDxk/2dsb2JhbABZgwarVJldAgKBHxd0glMTHCMYgQIkARKIRQHMZBeOVoQ/AQOOaYoEAYpqh2aDMzs Date: Tue, 22 Apr 2014 07:21:57 +0200 From: Fabian Frederick To: Jens Axboe , linux-kernel Cc: Viro , akpm Subject: [PATCH RESEND] fs/bio.c: remove nr_segs (unused function parameter) Message-Id: <20140422072157.66ca011625f37abda817b662@skynet.be> X-Mailer: Sylpheed 3.3.0 (GTK+ 2.24.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org nr_segs is no longer used in bio_alloc_map_data since c8db444820a1e3 ("block: Don't save/copy bvec array anymore") Cc: Alexander Viro Cc: Andrew Morton Signed-off-by: Fabian Frederick --- fs/bio.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fs/bio.c b/fs/bio.c index 6f0362b..bd39c5b 100644 --- a/fs/bio.c +++ b/fs/bio.c @@ -1011,8 +1011,7 @@ static void bio_set_map_data(struct bio_map_data *bmd, struct bio *bio, bio->bi_private = bmd; } -static struct bio_map_data *bio_alloc_map_data(int nr_segs, - unsigned int iov_count, +static struct bio_map_data *bio_alloc_map_data(unsigned int iov_count, gfp_t gfp_mask) { if (iov_count > UIO_MAXIOV) @@ -1154,7 +1153,7 @@ struct bio *bio_copy_user_iov(struct request_queue *q, if (offset) nr_pages++; - bmd = bio_alloc_map_data(nr_pages, iov_count, gfp_mask); + bmd = bio_alloc_map_data(iov_count, gfp_mask); if (!bmd) return ERR_PTR(-ENOMEM); -- 1.8.4.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/