Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp6312331imm; Wed, 27 Jun 2018 05:53:07 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJtiKVXBJ0C8KtkJDkE/uXEpli8178NM2QRDrTotchvdqetnLT5PcdB02MIIez6IJJK/As5 X-Received: by 2002:a63:85c8:: with SMTP id u191-v6mr5066242pgd.36.1530103987286; Wed, 27 Jun 2018 05:53:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530103987; cv=none; d=google.com; s=arc-20160816; b=qrQ4e7IkHlHMdfvwgPufxs2n9brT/fK2cR3NLZ+wajrFKd8Nd5XuBJTHwgu34Xy0Hn i4/AH3WRTHFb1ImBxGTYmlhILUXKrMQjFjSzsqJk4ILAaFreSgoxC9RIo6p92kmTsdTx 6MneCNdt3sR2nR2VtrPLh3GoBLSxek1XViTAaLJQ6p1rwSijEpI8dJdOMI0wMcHMH+G3 gd5y2d8FIphhV5nLesK7I+agomr55e8v9mFHloDlfvrRHdkQBsgscxhA8tfXUFtkoUYA 1AJ7CVh31NxAsHsHrFy+ji7szXuoPp1GZAcKWtbm3G+RilqFehYnD5n5vubukfsPY8+s BEWw== 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=lr8HzUjEptRFbDNBkba9OfDHv+B0ZrnBf3KocODTxD4=; b=w0kXzW49JiwyLgsbqoavYev5a9HR+NcQJ4axkFTCzfy9hSmpujDrAIKPWZC3ntQd2U Hk3Gpd8WTVopquRRUWQkUGfKPcktP69y1hFzFItgA/2XTcPuwdGiQlyLWnKd1WZafLRt dZ+calOTdD058cNC2OyrPAXg14wKY2mLMF2dKps/ooKYVSDEeG5TTN/MHe6am//vcJUF 0W+7tIopa3n9U1k6ySXiBy24A+jfSl4TSo9LoYmTBuM9r956sGj6/C1Lj6p+AKv9KXfF pOSlMNBCsDBklnaD2VHXusSpNwSphbZcMVc6hqd48Dy2C/sb7FQkpB6pROCMNmO5sFLU lVNQ== 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 n81-v6si3850899pfk.277.2018.06.27.05.52.52; Wed, 27 Jun 2018 05:53:07 -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 S965324AbeF0Muj (ORCPT + 99 others); Wed, 27 Jun 2018 08:50:39 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:39406 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S964809AbeF0Muh (ORCPT ); Wed, 27 Jun 2018 08:50:37 -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 F1F7D40704A7; Wed, 27 Jun 2018 12:50:36 +0000 (UTC) Received: from localhost (ovpn-12-44.pek2.redhat.com [10.72.12.44]) by smtp.corp.redhat.com (Postfix) with ESMTP id C23852026D5B; Wed, 27 Jun 2018 12:50:28 +0000 (UTC) From: Ming Lei To: Jens Axboe , Christoph Hellwig , Kent Overstreet Cc: David Sterba , Huang Ying , Mike Snitzer , 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 V7 23/24] block: always define BIO_MAX_PAGES as 256 Date: Wed, 27 Jun 2018 20:45:47 +0800 Message-Id: <20180627124548.3456-24-ming.lei@redhat.com> In-Reply-To: <20180627124548.3456-1-ming.lei@redhat.com> References: <20180627124548.3456-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.7]); Wed, 27 Jun 2018 12:50:37 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Wed, 27 Jun 2018 12:50:37 +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 b44f9a40bb8b..3412947e42f2 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