From patchwork Sun Apr 17 21:29:57 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Lei X-Patchwork-Id: 8863771 Return-Path: X-Original-To: patchwork-linux-block@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 4FA36BF440 for ; Sun, 17 Apr 2016 21:31:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8808820149 for ; Sun, 17 Apr 2016 21:31:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A2F11201E4 for ; Sun, 17 Apr 2016 21:31:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751836AbcDQVbU (ORCPT ); Sun, 17 Apr 2016 17:31:20 -0400 Received: from mail-yw0-f195.google.com ([209.85.161.195]:33098 "EHLO mail-yw0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751805AbcDQVbS (ORCPT ); Sun, 17 Apr 2016 17:31:18 -0400 Received: by mail-yw0-f195.google.com with SMTP id o63so21451755ywe.0; Sun, 17 Apr 2016 14:31:18 -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:in-reply-to :references; bh=PycZ00Mq1TZaezJg5o5CG22LMZhSYlZWImZonXE4rlg=; b=XybZ3DxkCBQ+49j4Z3jlri8wdhWm/Q9PHa3gZcC8dd4PFvAQEUQhMFkdClly/bu+6K 4sLoOmnDUqS53R/GvBPfEI7xS9yWLDflH9dH0FjdCU+VExk8VpwS9tAKZpCYkpYFhHnD vhWMyPu3Etaxmt834yDtOTNHhNoq6QC08EBhCfh97n2lD/PpDjA/zn4hXjmSt00S/Yzw sFxzFVYSTfe4+mV74A+XuJ4eKUxSwsD8VEqIKmxNhG8pyY2iI6xZ5hUBxs8qvnRCWf0x hfyAM3BBWCpQi5c6ysufepgeELVEfsSNIxG2IVIrbPtyTGfYptM3HVnWjMgPdAfd/Qsg VC2Q== X-Gm-Message-State: AOPr4FXD8ojHteQUwXeGN6v4pw0XzveiYeEoj47YE4HlbVCrlanU4LKHVMzKy6Fq3rLepA== X-Received: by 10.129.129.6 with SMTP id r6mr17894529ywf.89.1460928677573; Sun, 17 Apr 2016 14:31:17 -0700 (PDT) Received: from localhost ([107.13.171.182]) by smtp.gmail.com with ESMTPSA id x9sm5456172ywg.56.2016.04.17.14.31.16 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Sun, 17 Apr 2016 14:31:16 -0700 (PDT) From: Ming Lei To: Jens Axboe , linux-kernel@vger.kernel.org Cc: linux-block@vger.kernel.org, Christoph Hellwig , Al Viro , Ming Lei , Jan Kara , Keith Busch , Kent Overstreet , "Kirill A. Shutemov" , Mike Snitzer Subject: [PATCH v5 8/8] block: bio: remove BIO_MAX_SIZE Date: Mon, 18 Apr 2016 05:29:57 +0800 Message-Id: <1460928615-20894-9-git-send-email-ming.lei@canonical.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1460928615-20894-1-git-send-email-ming.lei@canonical.com> References: <1460928615-20894-1-git-send-email-ming.lei@canonical.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.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, 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 No one need this macro now, so remove it. The motivation is for supporting multipage bvecs, in which we only know what the max count of bvecs is supported in the bio, instead of max bio size. 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 d9beea7..c8553fe 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) /* * upper 16 bits of bi_rw define the io priority of this bio