Message ID | 20180609123014.8861-30-ming.lei@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5D596601F7 for <patchwork-linux-mm@patchwork.kernel.org>; Sat, 9 Jun 2018 12:36:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 509FC1FF83 for <patchwork-linux-mm@patchwork.kernel.org>; Sat, 9 Jun 2018 12:36:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 45816223A6; Sat, 9 Jun 2018 12:36:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C98001FF83 for <patchwork-linux-mm@patchwork.kernel.org>; Sat, 9 Jun 2018 12:36:01 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C7A1E6B029A; Sat, 9 Jun 2018 08:36:00 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id C50BF6B029C; Sat, 9 Jun 2018 08:36:00 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B68726B029D; Sat, 9 Jun 2018 08:36:00 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-qt0-f199.google.com (mail-qt0-f199.google.com [209.85.216.199]) by kanga.kvack.org (Postfix) with ESMTP id 8D68C6B029A for <linux-mm@kvack.org>; Sat, 9 Jun 2018 08:36:00 -0400 (EDT) Received: by mail-qt0-f199.google.com with SMTP id o68-v6so12120379qte.0 for <linux-mm@kvack.org>; Sat, 09 Jun 2018 05:36:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:message-id:in-reply-to:references; bh=GzAmBY5s1a/XIE80BxoZgmdF82cCwspow5F6GDBj75Y=; b=JbvXmg+RiIl55w71oYdHDRIM6qfrCmbsChClzkNx0wjFXE6099RpgbFY5c25aJvsir n2XF3xylQ2q+HTgikDOCtmUvF3Z8luzO1J8I7WQ0wky53xe37xOCUdyS2b38f3420oFc zu+mSXn453w2AvDPprIWZ2z09ku2LcKH6vP/TV783KoMxa/UY9hE2mAgGpnvnbVLrCYH ZkWa4cByq6UHdbIHyxmFH++7xX98jmrZ+nlS+nc3fwzB69ssPVqN1YK01sOYmBLmJ8jC gotpFkAY3wPToSxPzYzXbc3/eBtEMoEJTrdRi/Zfnxad20Bj5wVNpFpDXhAR4aDRWsvF 4wLw== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of ming.lei@redhat.com designates 66.187.233.73 as permitted sender) smtp.mailfrom=ming.lei@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com X-Gm-Message-State: APt69E0KpJ0XQQAtWHRVwpYS2LwQBXUhwO0Cq5E9kj1Em8IZpWqFvxNe ZFPSACBZPwDwn8w51WIGlsKem+CG5oyhLZmhK7mTh7QLqVH0PsLBvVi1Y9nQYjrO4PW58OOYqU3 TXvKSIyQnwKytKpojEm0KXbXxQ1Xfp6ChNZNWnu2R+gUlWVxgNU7hBSDdesv+OpQLhA== X-Received: by 2002:a0c:ac95:: with SMTP id m21-v6mr9098339qvc.12.1528547760392; Sat, 09 Jun 2018 05:36:00 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJyTUUYbtE0kB4f0k/M1S28Sa4+QuwmqvF/AXo1NKy1+11kyCrC8bpCqOauqBU99jaJOlfp X-Received: by 2002:a0c:ac95:: with SMTP id m21-v6mr9098320qvc.12.1528547759887; Sat, 09 Jun 2018 05:35:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528547759; cv=none; d=google.com; s=arc-20160816; b=uryjqnFVB1nU30QXkTSijiHbwcCsmkM266TBOzJCiOdPedtT+MatFurh3hujyOTYMp y7//zEiyF9SXTIi9YLc+qPJA9a36oK62ZyuEYcaviilDIU+zVO6v2d/gGj+7p//40Wyk n+G3vwbinx4WiH7cUSMz3Uh69y75CaXh0JwflzrhJ4JfYMc59YO4iJE8NcVzMJ9cGNq9 Tzu26fvp+H2HD+yiN50IffalPMKwGyAzDVy3xsm152m1DGBhzk9z9NgZMfmtahFhrUZh +LtIGYnlxPx6l4yk5z7DcSPxdap0vQJ2pBWK/ip4MWf+/QyKOSXdKeE5uTf9MFn+mPyt le5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=GzAmBY5s1a/XIE80BxoZgmdF82cCwspow5F6GDBj75Y=; b=rJmp+LAWqOPnPoFJ7eVgDSDpp4VpqhOPnwRDfCcQFG3cObNL4QQjOE4Tozkbln/EEo uhyR9XM2IgWXfbR98+pJHytnnTjHtV+lLeqUitctjnX+W5hSfB0qKGvdz07HNVCQ4N46 8JgfvUidUykVU469/aDxkqtnIriWUTwfU65YzLQxpFJn8taggFvQZa2EqAld5f//SrPL 6n0Dx/+Nb9bykX0xZ5w2giMUlbjEgg3Nu/7GgeXAfsSwkLHtZEuleWdZ1tUT8oGYfTPR B6KpzfX30zsJJupZbp2hLSY88TCf0XtGjNOOZELhltGEbEIvwhdaoarrTOYQ7dFAq99L g2vQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ming.lei@redhat.com designates 66.187.233.73 as permitted sender) smtp.mailfrom=ming.lei@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from mx1.redhat.com (mx3-rdu2.redhat.com. [66.187.233.73]) by mx.google.com with ESMTPS id g5-v6si55504qvm.263.2018.06.09.05.35.59 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 09 Jun 2018 05:35:59 -0700 (PDT) Received-SPF: pass (google.com: domain of ming.lei@redhat.com designates 66.187.233.73 as permitted sender) client-ip=66.187.233.73; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ming.lei@redhat.com designates 66.187.233.73 as permitted sender) smtp.mailfrom=ming.lei@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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 <ming.lei@redhat.com> To: Jens Axboe <axboe@fb.com>, Christoph Hellwig <hch@infradead.org>, Alexander Viro <viro@zeniv.linux.org.uk>, Kent Overstreet <kent.overstreet@gmail.com> Cc: David Sterba <dsterba@suse.cz>, Huang Ying <ying.huang@intel.com>, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, Theodore Ts'o <tytso@mit.edu>, "Darrick J . Wong" <darrick.wong@oracle.com>, Coly Li <colyli@suse.de>, Filipe Manana <fdmanana@gmail.com>, Randy Dunlap <rdunlap@infradead.org>, Ming Lei <ming.lei@redhat.com> 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:'' X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> X-Virus-Scanned: ClamAV using ClamSMTP |
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)
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 <ming.lei@redhat.com> --- include/linux/bio.h | 8 -------- 1 file changed, 8 deletions(-)