Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1978204imm; Sat, 9 Jun 2018 05:36:46 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKtchEIA+LPxRF7JloiwEkeDi7hwK8zHEWq1rA4ZLtn1J14fn52HClAq2n56xwpCe+Ybwc8 X-Received: by 2002:a65:608d:: with SMTP id t13-v6mr8490526pgu.266.1528547806244; Sat, 09 Jun 2018 05:36:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528547806; cv=none; d=google.com; s=arc-20160816; b=lwmZc/xc+GQzrIKqRD1o1vEoGDulIwVQ0/xUs5rCc7ImUlYKTSl3JWsMTsMNAS3ViE S/78eYX7kKQaHMLSu7AdOh0KUIX3O2gB47x0AZ0x2+bNIrbu2aJNnKOoxl9HNw82FIYX 3AYuUAvUAMmu8yjXdotdlVpe3dQHyiT2nTbnTg0/2qGJsHujhbnqos3iwdUqGmP6GlZo nOEQPW+poCDmCkfDPVV7Cg+sUcSE+VgRQATH0rLeTIaADK/xMN2uaGHm1FuKd1BRS/NI QlrHJPZznTp97MuD2MSpobDvj08mbJUdYaQ1nfTDCxVmM15uQ2VOyPN+dI43V9dLWWzF VA9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=GzAmBY5s1a/XIE80BxoZgmdF82cCwspow5F6GDBj75Y=; b=AF7UqrLfcN9kwyEH3wyyY01fcXmcATzw6ceJ91kU802SC08pLnqy/SEpPVNPFGaMha j3VfNzoVogRF9g5Pp9P7SURlCCv7XS55Yus7nUxHA8ZmGgcbBk6MPY/1MGLcbkRZeDb7 s+6FrrP/iB1aBSNzka10jyVMzLSVtzi23zQQRJbktN7Lmd+R/tRVabJPmCKChki3+YX7 KAICo2JoI8IznB8lrIk312BZ/osGcBIKZIbQ7xtgogfGJs1b5paMh5sH1ieJCTYZFxMX 0ttOMcxj+/zvdH3TMS5EnMXa+HpDvgMppzQJ6Jsq4fvdx7hpFOBB9MbOMPPHkOlZC03M sE8g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t1-v6si27104187pge.439.2018.06.09.05.36.32; Sat, 09 Jun 2018 05:36:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932346AbeFIMgC (ORCPT + 99 others); Sat, 9 Jun 2018 08:36:02 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:36178 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932081AbeFIMgA (ORCPT ); Sat, 9 Jun 2018 08:36:00 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 719D5859A5; Sat, 9 Jun 2018 12:35:59 +0000 (UTC) Received: from localhost (ovpn-12-40.pek2.redhat.com [10.72.12.40]) by smtp.corp.redhat.com (Postfix) with ESMTP id 54AE1200BCEB; Sat, 9 Jun 2018 12:35:50 +0000 (UTC) From: Ming Lei To: Jens Axboe , Christoph Hellwig , Alexander Viro , Kent Overstreet Cc: David Sterba , Huang Ying , linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, Theodore Ts'o , "Darrick J . Wong" , Coly Li , Filipe Manana , Randy Dunlap , Ming Lei Subject: [PATCH V6 29/30] block: always define BIO_MAX_PAGES as 256 Date: Sat, 9 Jun 2018 20:30:13 +0800 Message-Id: <20180609123014.8861-30-ming.lei@redhat.com> In-Reply-To: <20180609123014.8861-1-ming.lei@redhat.com> References: <20180609123014.8861-1-ming.lei@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Sat, 09 Jun 2018 12:35:59 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Sat, 09 Jun 2018 12:35:59 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'ming.lei@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now multipage bvec can cover CONFIG_THP_SWAP, so we don't need to increase BIO_MAX_PAGES for it. Signed-off-by: Ming Lei --- include/linux/bio.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/include/linux/bio.h b/include/linux/bio.h index 69ef05dc7019..58838dc12d69 100644 --- a/include/linux/bio.h +++ b/include/linux/bio.h @@ -38,15 +38,7 @@ #define BIO_BUG_ON #endif -#ifdef CONFIG_THP_SWAP -#if HPAGE_PMD_NR > 256 -#define BIO_MAX_PAGES HPAGE_PMD_NR -#else #define BIO_MAX_PAGES 256 -#endif -#else -#define BIO_MAX_PAGES 256 -#endif #define bio_prio(bio) (bio)->bi_ioprio #define bio_set_prio(bio, prio) ((bio)->bi_ioprio = prio) -- 2.9.5