From patchwork Thu Apr 14 12:02:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Lei X-Patchwork-Id: 8835081 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 20C119F3A0 for ; Thu, 14 Apr 2016 12:06:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5CF9920131 for ; Thu, 14 Apr 2016 12:06:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8AAE120109 for ; Thu, 14 Apr 2016 12:06:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755037AbcDNMGU (ORCPT ); Thu, 14 Apr 2016 08:06:20 -0400 Received: from mail-ob0-f196.google.com ([209.85.214.196]:33275 "EHLO mail-ob0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754780AbcDNMDm (ORCPT ); Thu, 14 Apr 2016 08:03:42 -0400 Received: by mail-ob0-f196.google.com with SMTP id js7so4889305obc.0; Thu, 14 Apr 2016 05:03:42 -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=lCBpF5Qqdq2wjLeNzHNSsm0I05Q6cIi2XJL7uCN8Cb4=; b=snsWBDwWLVrxS7Vf5uVw+2FaWZcmxHEdtzRFaJigaZ1WCNCFgl5EGFDPtFSN2gaKlN eKLHFs/WKIWH/uxyYRYz89d6YWFqv1TiEp7+HpPPkIhTAG62nYJzAw2ZKcAc17Sr/q6/ wc7FihAw8Ynm1F4XvSmGhoCz1IaLYY3AQiCZzP/0sFr/8Dl87QdxlHoVhCMFViv3gmPh EYRW2+zciGPfDVF9sC2MWiPh63RD4ouKa0eVBX9xIuaLjFYp82jWFoTnGxcdwA7ZoN3C SCGlCC5UYxcsDquvc/6wSZEsbQuSkbVfE7XcuLgk/81Y2IMUPxgt58rE4NlbTsFoUH9E pInA== 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=lCBpF5Qqdq2wjLeNzHNSsm0I05Q6cIi2XJL7uCN8Cb4=; b=G2mwoz32kQEqOmdl8K1s2IZr3I2hRM8VjmLAAggAH2WlRVQckoGrdodJL4DY8m2cqw ykiXvC66AZJUXBUszfi4P1RV5khLMnfYnFxDW/h6CAKkXogn9glHZsdYWHXw+nnp/7HF NojkgFom+H7kuEboFhVk7zORMeRjjT9UC2xQkMxcwj97YNgU6TdrJ/B4hJxxCIy+2DEP 6+fqIlW6nrO8jCCtYoWZkFH8/bx6XMkgTH7gPJKY/mK3ULCgJmZQeUaLQlJ0U7966fRG 33OWYnQQcSTjWThXX2wdJ0KjXmWRKmoAhILFjxtY/B8A/QiiDsu66UzTRM0sePfGzauD 7CiA== X-Gm-Message-State: AOPr4FWETpv/cOW9lVMq8wXyHepCIHNqpXuux0NllqKB43BaztnzlqBqL7gsRZfiy2OlJQ== X-Received: by 10.182.233.131 with SMTP id tw3mr7767414obc.80.1460635421820; Thu, 14 Apr 2016 05:03:41 -0700 (PDT) Received: from localhost ([12.228.154.70]) by smtp.gmail.com with ESMTPSA id 8sm13516528obo.12.2016.04.14.05.03.41 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Thu, 14 Apr 2016 05:03:41 -0700 (PDT) From: Ming Lei To: Jens Axboe , linux-kernel@vger.kernel.org Cc: linux-block@vger.kernel.org, Christoph Hellwig , Ming Lei , Joern Engel , Prasad Joshi , logfs@logfs.org (open list:LogFS) Subject: [PATCH v1 21/27] fs: logfs: use bio_set_vec_table() Date: Thu, 14 Apr 2016 20:02:39 +0800 Message-Id: <1460635375-28282-22-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 --- fs/logfs/dev_bdev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/logfs/dev_bdev.c b/fs/logfs/dev_bdev.c index cc26f8f..9f15b53 100644 --- a/fs/logfs/dev_bdev.c +++ b/fs/logfs/dev_bdev.c @@ -20,8 +20,7 @@ static int sync_request(struct page *page, struct block_device *bdev, int rw) struct bio_vec bio_vec; bio_init(&bio); - bio.bi_max_vecs = 1; - bio.bi_io_vec = &bio_vec; + bio_set_vec_table(&bio, &bio_vec, 1); bio_vec.bv_page = page; bio_vec.bv_len = PAGE_SIZE; bio_vec.bv_offset = 0;