From patchwork Fri Jun 10 03:27:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Lei X-Patchwork-Id: 9168785 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0D3C9604DB for ; Fri, 10 Jun 2016 03:27:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 00A4D28328 for ; Fri, 10 Jun 2016 03:27:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E6AEF28368; Fri, 10 Jun 2016 03:27:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3E36528328 for ; Fri, 10 Jun 2016 03:27:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751732AbcFJD1b (ORCPT ); Thu, 9 Jun 2016 23:27:31 -0400 Received: from mail-pa0-f68.google.com ([209.85.220.68]:33572 "EHLO mail-pa0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750994AbcFJD1a (ORCPT ); Thu, 9 Jun 2016 23:27:30 -0400 Received: by mail-pa0-f68.google.com with SMTP id di3so4068482pab.0; Thu, 09 Jun 2016 20:27:30 -0700 (PDT) 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; bh=lGpJfzfan87qjgAHTjJVOx2N96FE44KNL4AM8CyBHU4=; b=EnlozLO50Xoi+fIZBAQV7XdmSmopsotW59KNxaEVrZtT+5GWnsHj99wQjJ1d3Br+d3 6HMl2wUVMfNHtN53B9Jp9iP8NxNG8zaLun9zOUmLeK0QmyOEHlCbaHhhmzwsTEhM43Fj 1rFECoe7MVENZ5amxDAeeDJsVJYaKFcpqdZ+NPLmcOxo48W4oScS4aiKomy/o/2s43QS f7PtKv8i9yFBpGmbWeaDcJ6+skjua/mfHIWWJ/c3hNKktX+2EjYGIjldReqbOOL+ZQVI 8tcq44ry6BbQ9DelH9aDX0End2nAMbV9lqxKrOcCw+SD5FklHcogptK/+sZXUN0yrbcy YFFQ== X-Gm-Message-State: ALyK8tITAy3PSHp777egHs0KvVvicfCXGZj5dNjK60yvMm2jrXRh6pOi+HibfwJYA5xNbQ== X-Received: by 10.66.197.202 with SMTP id iw10mr16201029pac.148.1465529249383; Thu, 09 Jun 2016 20:27:29 -0700 (PDT) Received: from localhost ([45.35.47.137]) by smtp.gmail.com with ESMTPSA id f27sm13346887pff.17.2016.06.09.20.27.26 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Thu, 09 Jun 2016 20:27:27 -0700 (PDT) From: Ming Lei To: Jens Axboe , linux-kernel@vger.kernel.org Cc: linux-block@vger.kernel.org, Christoph Hellwig , Ming Lei , Mike Christie , Hannes Reinecke , Keith Busch , Mike Snitzer Subject: [PATCH] block: bio: kill BIO_MAX_SIZE Date: Fri, 10 Jun 2016 11:27:12 +0800 Message-Id: <1465529234-31195-1-git-send-email-ming.lei@canonical.com> X-Mailer: git-send-email 1.9.1 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP No one need this macro now, so remove it. Basically only how many bvecs in one bio matters instead of how many bytes in this bio. The motivation is for supporting multipage bvecs, in which we only know what the max count of bvecs is supported in the bio. Reviewed-by: Christoph Hellwig Signed-off-by: Ming Lei --- include/linux/bio.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/bio.h b/include/linux/bio.h index b64a3d9..b7e1a008 100644 --- a/include/linux/bio.h +++ b/include/linux/bio.h @@ -41,7 +41,6 @@ #endif #define BIO_MAX_PAGES 256 -#define BIO_MAX_SIZE (BIO_MAX_PAGES << PAGE_SHIFT) #define bio_prio(bio) (bio)->bi_ioprio #define bio_set_prio(bio, prio) ((bio)->bi_ioprio = prio)