Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp544957imu; Mon, 26 Nov 2018 14:45:45 -0800 (PST) X-Google-Smtp-Source: AFSGD/W5MLQ7cffvwTiDHdtf4ldT41PcnnGmF3JqiLTodirUz5NDilag8QyjAjJ3mFe/jm7T6Eik X-Received: by 2002:a63:4f5e:: with SMTP id p30mr26761434pgl.71.1543272345511; Mon, 26 Nov 2018 14:45:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543272345; cv=none; d=google.com; s=arc-20160816; b=lwKAXgOE7hH2Wkw6pE/NZsF8Rp2O2hC4/ivz/zop8MG4HUZfzoupwXHRKCftDvec+W 5ijf1ZFy4/65CYJVnNHMjuACVX0hmtlNge63bpwTh8iOPrCy/nDJrIfRm8HDYMAvV/SN s79icAyw/b/SgwtwWh3Kqc54k7V5G/uyWNEpGaWFVTxvzSyFO0FqiZcrORCaIfgpj+YY UyLFWi9DHtYiH5oflFol2awLYsHOdrOje2j5I6cQ1DEydAWQtexIgd8MevhAmkrUslSt ANeH8rlw1H1Jp7T5jR7YxON+Rc3QNodzAuvq3vx3H4kBWdoAzddh79wThfCz2e6CExTt 257g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=cA9eOqjetgKdwTc0IyYrmBxIamtijscygN3GSsAT39o=; b=uGWMoVry2VEUQNxXAB0D5PRxfgteSuiOgtmPidQUAJ2MwuoJeC5CP2CN0m+nR5RDUQ ruLSPasZQ1uQiMJqiShSqFT83sAstFalLmBv//CKCzs/YIYvnBvx0AtnFLkHmwqLbLYp L0N1kbiQE/TPdCsIIS7q+4hDf/T7zjLbGiBu6uRiOkEMyXDZ6TUn+6tZUL6FlPyrDx3u TyQD+C6CTo2w524t6z7ugqJRNCqlFiU75ocsu53PDMUYqtugNzpP73UouHdUyBd1Y4IX 1ckpoHJiAu2/B3wybSTjechbeMSMtMRfGnoONmc0bjOnlh0aG720VsT7/HVmipu8REu0 SgqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@osandov-com.20150623.gappssmtp.com header.s=20150623 header.b=Z0bQFfql; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 2si1524628pgy.35.2018.11.26.14.45.29; Mon, 26 Nov 2018 14:45:45 -0800 (PST) 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; dkim=pass header.i=@osandov-com.20150623.gappssmtp.com header.s=20150623 header.b=Z0bQFfql; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727547AbeK0JkX (ORCPT + 99 others); Tue, 27 Nov 2018 04:40:23 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:37816 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727245AbeK0JkW (ORCPT ); Tue, 27 Nov 2018 04:40:22 -0500 Received: by mail-pg1-f193.google.com with SMTP id 80so6859779pge.4 for ; Mon, 26 Nov 2018 14:44:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osandov-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=cA9eOqjetgKdwTc0IyYrmBxIamtijscygN3GSsAT39o=; b=Z0bQFfqlNiGrkj90Vl6WWbS+aa0UGMgFkN5W5rWNB0z7ULOP4pQv4acxcfxe2Yu8qB 4W3Sww2RJW17EOid7sccXAKeBNDhBUgM6gKCJHhAcTuUhkIm1q7U9zB5wGs/6e9+B1sB jO3SNgel20symJK9mP+LJ7Y3kpOfRghqXkkhCU9QL4oO3tB7ZQTRPZP5kfan5gMDGUqK ByXzD3ty1oNCWb336xuJZx0OHpUV+9jUUPIC92388B5wMuCva9C/hlBOKo7B4LDv/ZX0 xuB6whVjbQKLUy9bAF/R6Nq8fEBlkfdluRV1yKs7Bl7Nw+VkHmjSzJ3j7ID3cQBCTnDZ VFeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=cA9eOqjetgKdwTc0IyYrmBxIamtijscygN3GSsAT39o=; b=VoZfQmE52uWNeIF46NOfcC9a7SLZKX0cFr1mlZ/sDqR6qLfip7Vb4xpWXRqMMj+c1v 0/mOJJFzv5bASL49s+Jo1f3YosysMUGTnFJu+DQrJree95pSxHelN/qlqO7f9d/y+2sg JisghSJd8QZMMqItAX2vA423WRMTukxswb0XpB63fW3qbQI6jfpVXPeJT5sI4NVKGDjI BURvkG3zcqiJpiMowHSkx5Y6S1FvCMVzr8A7y5aXPQJ+xoh/3awHeCoYpZGkNxFEBV0O WlAguH/EE1V+HU9JvZlQ3elNHJwe7lDXDJtM6i4A4Rj2wmnbpMfSk9JsHuxoiEQc766i 6rTA== X-Gm-Message-State: AA+aEWZxNIgivdusXs7HtsgJ3YalzjHJ32tyAwpKWSla3sc0UvM4OSAH PxsDhZcQrnxyG/EaLu5tqFDTpA== X-Received: by 2002:a63:2054:: with SMTP id r20mr26725129pgm.328.1543272282188; Mon, 26 Nov 2018 14:44:42 -0800 (PST) Received: from vader ([2601:602:8b00:55d3:e6a7:a0ff:fe0b:c9a8]) by smtp.gmail.com with ESMTPSA id l63-v6sm1769066pfb.75.2018.11.26.14.44.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 26 Nov 2018 14:44:41 -0800 (PST) Date: Mon, 26 Nov 2018 14:44:39 -0800 From: Omar Sandoval To: Ming Lei Cc: Jens Axboe , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Theodore Ts'o , Omar Sandoval , Sagi Grimberg , Dave Chinner , Kent Overstreet , Mike Snitzer , dm-devel@redhat.com, Alexander Viro , linux-fsdevel@vger.kernel.org, Shaohua Li , linux-raid@vger.kernel.org, David Sterba , linux-btrfs@vger.kernel.org, "Darrick J . Wong" , linux-xfs@vger.kernel.org, Gao Xiang , Christoph Hellwig , linux-ext4@vger.kernel.org, Coly Li , linux-bcache@vger.kernel.org, Boaz Harrosh , Bob Peterson , cluster-devel@redhat.com Subject: Re: [PATCH V12 17/20] block: always define BIO_MAX_PAGES as 256 Message-ID: <20181126224439.GN30411@vader> References: <20181126021720.19471-1-ming.lei@redhat.com> <20181126021720.19471-18-ming.lei@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181126021720.19471-18-ming.lei@redhat.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 26, 2018 at 10:17:17AM +0800, Ming Lei wrote: > Now multi-page bvec can cover CONFIG_THP_SWAP, so we don't need to > increase BIO_MAX_PAGES for it. > > CONFIG_THP_SWAP needs to split one THP into normal pages and adds > them all to one bio. With multipage-bvec, it just takes one bvec to > hold them all. > > Reviewed-by: Christoph Hellwig Reviewed-by: Omar Sandoval > 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 5505f74aef8b..7be48c55b14a 100644 > --- a/include/linux/bio.h > +++ b/include/linux/bio.h > @@ -34,15 +34,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 >