From patchwork Thu Apr 14 12:02:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Lei X-Patchwork-Id: 8835071 Return-Path: X-Original-To: patchwork-linux-block@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 31A029F3A0 for ; Thu, 14 Apr 2016 12:06:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 61AF420131 for ; Thu, 14 Apr 2016 12:06:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 959ED20109 for ; Thu, 14 Apr 2016 12:06:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755308AbcDNMGW (ORCPT ); Thu, 14 Apr 2016 08:06:22 -0400 Received: from mail-oi0-f66.google.com ([209.85.218.66]:33344 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755021AbcDNMDl (ORCPT ); Thu, 14 Apr 2016 08:03:41 -0400 Received: by mail-oi0-f66.google.com with SMTP id v67so9555427oie.0; Thu, 14 Apr 2016 05:03:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=uWArVHBGuWdqe3BE0hN04z6z5PYm3oskTvuUxn87+30=; b=XdgGdaU2Xf1Ipx+cAcKC7UA6XzPMco9oc5SYbia9ppEVLmNKg5pt2h9a/zI5s3P7oV zNX1WUVSGMYDfM+p2bzUTJi8YKFiyu1tFoIDzY/MgJXgL9kneaVOA1tjPutMRxf7EZ1q DiOIEUzUTawQfWZDy9JLEkGCrrCwwYlmRa8v4dQOnzsAozpOXvFch6JjHMoibMIvOLnl Xrur+4ivFw2hgSxp8yoKoZO+3gqrnefSCl0vnSG1ytdn3VnOpy5jNBEIGtOepl0tSn2u Pq3O57tSKWH7q1aSo3y1v5DrLpU7tdOoqzdfjSZ6EF0G+fQSfJJ27UTpqmQTiFIc0qTc 2nHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=uWArVHBGuWdqe3BE0hN04z6z5PYm3oskTvuUxn87+30=; b=ijQUSSdvEUlVPhg+yEcu/bfE4xDUFbX1kUMwt40yblMuzOfO6q9Bzowx9I7L8zYIGz XgWFSoqDyiKPd1Gs9zz6v5xkFZzQybOSYhF2i9JDYu5a0AOGkc0RHwek8WEkisYUDAzt 9Ip4Q2a4YkoKMEJyJJqj5adTRYveQY+4CqhLJFivjTX6jxZND8oU0jiPGqmOi41ysQlp jkwMShLnQQ193bPtB4dZTlHBcgfautO7NdiSNgVqmDmBYe0s8vcy8zFW2iayotV0/Q5c Xz25dsvcZVzHd2CZgbpXOUQ/fHTgtSPHWFGlB474kvAk1ObMIVjqFcG3pw7aqajgz+XM SX+w== X-Gm-Message-State: AOPr4FUizcZXrx0LRq5QB+QegIVpWJrIggnQh/eJ5twNRoPCbjrzL1tjgWZwbibwBwqJ9A== X-Received: by 10.157.19.93 with SMTP id q29mr6857510otq.171.1460635420715; Thu, 14 Apr 2016 05:03:40 -0700 (PDT) Received: from localhost ([12.228.154.70]) by smtp.gmail.com with ESMTPSA id 91sm13210882oth.17.2016.04.14.05.03.40 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Thu, 14 Apr 2016 05:03:40 -0700 (PDT) From: Ming Lei To: Jens Axboe , linux-kernel@vger.kernel.org Cc: linux-block@vger.kernel.org, Christoph Hellwig , Ming Lei , Alasdair Kergon , Mike Snitzer , dm-devel@redhat.com (maintainer:DEVICE-MAPPER (LVM)), Shaohua Li , linux-raid@vger.kernel.org (open list:SOFTWARE RAID (Multiple Disks) SUPPORT) Subject: [PATCH v1 20/27] dm: dm-bufio.c: use bio_set_vec_table() Date: Thu, 14 Apr 2016 20:02:38 +0800 Message-Id: <1460635375-28282-21-git-send-email-tom.leiming@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1460635375-28282-1-git-send-email-tom.leiming@gmail.com> References: <1460635375-28282-1-git-send-email-tom.leiming@gmail.com> Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Ming Lei --- drivers/md/dm-bufio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/md/dm-bufio.c b/drivers/md/dm-bufio.c index cd77216..0e48ad7 100644 --- a/drivers/md/dm-bufio.c +++ b/drivers/md/dm-bufio.c @@ -624,8 +624,7 @@ static void use_inline_bio(struct dm_buffer *b, int rw, sector_t block, int len; bio_init(&b->bio); - b->bio.bi_io_vec = b->bio_vec; - b->bio.bi_max_vecs = DM_BUFIO_INLINE_VECS; + bio_set_vec_table(&b->bio, b->bio_vec, DM_BUFIO_INLINE_VECS); b->bio.bi_iter.bi_sector = block << b->c->sectors_per_block_bits; b->bio.bi_bdev = b->c->bdev; b->bio.bi_end_io = inline_endio;