From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161581AbcE3Ngy (ORCPT ); Mon, 30 May 2016 09:36:54 -0400 Received: from mail-pa0-f65.google.com ([209.85.220.65]:34582 "EHLO mail-pa0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161559AbcE3Ngv (ORCPT ); Mon, 30 May 2016 09:36:51 -0400 From: Ming Lei To: Jens Axboe , linux-kernel@vger.kernel.org Cc: linux-block@vger.kernel.org, Christoph Hellwig , Ming Lei , Keith Busch , "Kirill A. Shutemov" , Kent Overstreet , Mike Snitzer Subject: [PATCH v6 8/8] block: mark BIO_MAX_SIZE as obsolete Date: Mon, 30 May 2016 21:34:36 +0800 Message-Id: <1464615294-9946-9-git-send-email-ming.lei@canonical.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1464615294-9946-1-git-send-email-ming.lei@canonical.com> References: <1464615294-9946-1-git-send-email-ming.lei@canonical.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some in-tree drivers may use big bio which size is more than BIO_MAX_SIZE, also the macro is seldom used in tree. So mark it as obsolete now, and it doesn't make sense after multipage bvec is introduced. Signed-off-by: Ming Lei --- include/linux/bio.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/linux/bio.h b/include/linux/bio.h index fb59a06..b284595 100644 --- a/include/linux/bio.h +++ b/include/linux/bio.h @@ -41,6 +41,13 @@ #endif #define BIO_MAX_PAGES 256 + +/* + * This is obsolete now and shouldn't be used, and the macro + * doesn't make any sense especially when multipage bvecs is + * supported. Even now some drivers may pass big bio which size + * is more than the value, such as bcache. + */ #define BIO_MAX_SIZE (BIO_MAX_PAGES << PAGE_SHIFT) /* -- 1.9.1