From patchwork Tue Mar 22 06:12:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Lei X-Patchwork-Id: 8638171 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 0A0529F6E1 for ; Tue, 22 Mar 2016 06:14:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3083020225 for ; Tue, 22 Mar 2016 06:14:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 54B1920396 for ; Tue, 22 Mar 2016 06:14:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755876AbcCVGOE (ORCPT ); Tue, 22 Mar 2016 02:14:04 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:35544 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753441AbcCVGNI (ORCPT ); Tue, 22 Mar 2016 02:13:08 -0400 Received: by mail-pf0-f193.google.com with SMTP id u190so34031121pfb.2; Mon, 21 Mar 2016 23:13:08 -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=tbosPduufi2w9qKVZJkiTRlLhLWbBmkwHtD/gNRNQcc=; b=k0txpVbKjVaN7FmgcaUpQablF0OOVJrZBRnoZKspIAOPwEL2CWKV4twVI3vYALuzJu CHP/g/Fwt0l2o0ZyOoF1ZtUkw2sGQJC3oTjeMpn0Z4uU9jbMxkAm+jM5tG+G1a4+mCFR VWKj8EhQBKyRoaWpl/HOyiHiqn6DcZJrE45A4SA+C1De0sBydtKErlLuAO1SYlJyR30c PildtGyL1JBIIgw77ssBxNmLkdImBD0Q+zumLleGZ/3UAaAEp6Emie15vNmWQzzQWcQr C5PoXR4gjdwJ2+KfU9dWDXxyzq+JffOYBsnf+Yb7dIZOO4ic3ce8sbz942ksLuMMB7hv bsFA== X-Gm-Message-State: AD7BkJL/gFRBcC8XyS0XwBvMv4cIHcVIKCXCJRPmrAEXVLAeKM1a+Zt6bISENikEEJ3LhA== X-Received: by 10.98.80.206 with SMTP id g75mr51280666pfj.127.1458627187648; Mon, 21 Mar 2016 23:13:07 -0700 (PDT) Received: from localhost ([116.251.212.171]) by smtp.gmail.com with ESMTPSA id u21sm44627071pfa.60.2016.03.21.23.13.06 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Mon, 21 Mar 2016 23:13:06 -0700 (PDT) From: Ming Lei To: Jens Axboe , linux-kernel@vger.kernel.org Cc: linux-block@vger.kernel.org, Christoph Hellwig , Al Viro , Anton Altaparmakov , xfs@oss.sgi.com, Dave Chinner , drbd-dev@lists.linbit.com, Philipp Reisner , Lars Ellenberg , Boaz Harrosh , Ming Lei Subject: [PATCH 8/8] block: bio: remove BIO_MAX_SIZE Date: Tue, 22 Mar 2016 14:12:29 +0800 Message-Id: <1458627149-12988-9-git-send-email-ming.lei@canonical.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1458627149-12988-1-git-send-email-ming.lei@canonical.com> References: <1458627149-12988-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=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_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. Signed-off-by: Ming Lei Reviewed-by: Christoph Hellwig --- include/linux/bvec_iter.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/bvec_iter.h b/include/linux/bvec_iter.h index a979690..8ddaacf 100644 --- a/include/linux/bvec_iter.h +++ b/include/linux/bvec_iter.h @@ -23,7 +23,6 @@ #include #define BIO_MAX_PAGES 256 -#define BIO_MAX_SIZE (BIO_MAX_PAGES << PAGE_CACHE_SHIFT) /* * various member access, note that bio_data should of course not be used