From patchwork Thu Apr 14 11:46:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Lei X-Patchwork-Id: 8834671 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 207DD9F3D1 for ; Thu, 14 Apr 2016 11:49:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D37622011D for ; Thu, 14 Apr 2016 11:49:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E84C520114 for ; Thu, 14 Apr 2016 11:49:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754759AbcDNLt3 (ORCPT ); Thu, 14 Apr 2016 07:49:29 -0400 Received: from mail-ob0-f196.google.com ([209.85.214.196]:34392 "EHLO mail-ob0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754238AbcDNLsW (ORCPT ); Thu, 14 Apr 2016 07:48:22 -0400 Received: by mail-ob0-f196.google.com with SMTP id tz8so4828547obc.1; Thu, 14 Apr 2016 04:48:22 -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=rQC/EJLUscNArd0b3Eky3RH88FiQBB4/oOakLS9UkQg=; b=AcGn3NSx5BzxCK1tzOCbcXbZDa1Y8GUZPav2O5SeAqrw9+Rd5SsMO4bWshcWh9jf0Z 4CLezxmJMszNdFgzy43leIJbbKMJ9N/ZGLEJ1C2gmfRJA74gn1yuSFtP5uOBYjabstqp EW0IQN2bihmNkYvcHTP7ZQS/uxh+yn9hHM+N0GU96EKQNMtkBE5jO7ASIL5G2bEhZzQ1 q57VOb0HoOfAt7rBbr0EHbirDXPR02CaBfPwCo6VoPviJv5oQwY1FQhE6us0FMAIRe8T RneRy1Dk02an2AP0I7jZr/rec78MhhWoniDlRx8ygva3l1QUIv3kpCQL9IjgP5vFvEkn O7DQ== X-Gm-Message-State: AOPr4FXilJLzhWMJzFjRFAG58eOvHW5DxQup/foWZcZ58UXcGN9/2FSH8Bi/tkebiipkEg== X-Received: by 10.182.103.231 with SMTP id fz7mr7321876obb.47.1460634501843; Thu, 14 Apr 2016 04:48:21 -0700 (PDT) Received: from localhost ([12.228.154.70]) by smtp.gmail.com with ESMTPSA id v8sm8546132obj.14.2016.04.14.04.48.21 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Thu, 14 Apr 2016 04:48:21 -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 , Keith Busch , Jan Kara , Kent Overstreet , Tejun Heo , Mike Snitzer Subject: [PATCH v4 6/8] block: bio: remove BIO_MAX_SECTORS Date: Thu, 14 Apr 2016 19:46:59 +0800 Message-Id: <1460634438-26530-7-git-send-email-ming.lei@canonical.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1460634438-26530-1-git-send-email-ming.lei@canonical.com> References: <1460634438-26530-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, 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 size or max sectors. 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 96835a0..d9beea7 100644 --- a/include/linux/bio.h +++ b/include/linux/bio.h @@ -42,7 +42,6 @@ #define BIO_MAX_PAGES 256 #define BIO_MAX_SIZE (BIO_MAX_PAGES << PAGE_SHIFT) -#define BIO_MAX_SECTORS (BIO_MAX_SIZE >> 9) /* * upper 16 bits of bi_rw define the io priority of this bio