Message ID | 20180713021228.439-1-ying.huang@intel.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 551B5601C2 for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 13 Jul 2018 02:12:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3592E29C73 for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 13 Jul 2018 02:12:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 272D429C77; Fri, 13 Jul 2018 02:12:44 +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 8DBCC29C73 for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 13 Jul 2018 02:12:43 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 795186B0008; Thu, 12 Jul 2018 22:12:42 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 744FD6B000C; Thu, 12 Jul 2018 22:12:42 -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 65C5D6B000D; Thu, 12 Jul 2018 22:12:42 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pf0-f197.google.com (mail-pf0-f197.google.com [209.85.192.197]) by kanga.kvack.org (Postfix) with ESMTP id 25E7D6B0008 for <linux-mm@kvack.org>; Thu, 12 Jul 2018 22:12:42 -0400 (EDT) Received: by mail-pf0-f197.google.com with SMTP id w11-v6so13607771pfk.14 for <linux-mm@kvack.org>; Thu, 12 Jul 2018 19:12:42 -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; bh=RWG/tUjdxVjbUE5BhyraKssRgRMZL+36qwewYW2LD7A=; b=Se8pdSDZypRQvYufxqiIW1udArvT1ejE5Av8Xc0ES2Lk2gy07q2KSndJpX2qCOdTD1 KCRmxh7WVl9T1bICXLfCAiR7sQauaDui152LtESU0StO+HDhjmB1GILMQll0NJoe0cuQ 8bMda6whcMr9tczR0wnUw/OC+WJsKs8FkrWmwDwoqEaJL4edzwQteAn+QytEe5gdPHUI x99Mp2vMoLwXxo3vpn+CG1zJzZsm+69M5RDer2OzNEZVxlnZzMePLve9x5o/hPnnkSal AQtMGLBAb7jvS3uWmmJbD6mnaomzCStdTAvBWMhENOmwcBmJFVehj4F658//gU7oX7qc RKuA== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of ying.huang@intel.com designates 192.55.52.88 as permitted sender) smtp.mailfrom=ying.huang@intel.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Gm-Message-State: AOUpUlHeseRLzzmXjY32+W2NlB++8Jz7aw/jrHlMIOCLuyWUdc3/P6ve e778LtDlHWR6UH1XA3pN/gv3M2XLxq77Ss3HEQStsDTI4XsWyHo8a23hTmebi9cCQVRCrFRtky6 WF5axyycRXQHAwctqDpPpc5uPtFWSF0QRG8Bkmdd6iFleG9vjayXuWFSiaXuvqMtRIA== X-Received: by 2002:a17:902:2864:: with SMTP id e91-v6mr4370275plb.240.1531447961806; Thu, 12 Jul 2018 19:12:41 -0700 (PDT) X-Google-Smtp-Source: AAOMgpejaF5yAYfE7ZFcUUBqxpzArmoASdpK5edvPT4f74CK6Z+hSg0690Z1KAaXwCF8+lMG6IJs X-Received: by 2002:a17:902:2864:: with SMTP id e91-v6mr4370243plb.240.1531447961011; Thu, 12 Jul 2018 19:12:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531447960; cv=none; d=google.com; s=arc-20160816; b=yjXm8GsKK9rEYM1/i85dECl2kWg78Dh4/2f/J4PU5sakMqYXDYJlh/pVmYbsxUTdqD IZNYa7JHv+NRznNlYqGRmtv341MN1yUirlzNmYspAxj5NmwI1PlXT2qWo0XjGle4xeCU mr6px/CTJNEWe5jZZU2asHWoZ1LqkaO0ZpaSXjvFQ655+EKXZDEQ7IQ43Wn+tZayx9z+ 2yYRfCkYv3cij+xRSNlzqDDtgLrS/HcNf98vXqQ2cX1vTTIhAfxicSrpXCFZSYxycixV puZQcTEiVfD/qOzjJKM8mWXvs3PIPr/8EACR/Q6VQ0XtXm9XJl87WYkNHPgwLfwkRnXW UU0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:arc-authentication-results; bh=RWG/tUjdxVjbUE5BhyraKssRgRMZL+36qwewYW2LD7A=; b=bWR5FYDTyf/8KBNkmz8jsPFrM/t2Nc5J6oE7Bkt+KqsIH/1gH7FwgR1a1tUA0g7T0T ZtZtocgKWk9DSbbYmggQOOVjINQ7muQmd7ay2M3JbAp8jKCG0NM78Ax5t0CNBpANzQsY E0A23FL3uyvcKsNQX2YVa4xwUofsPBdV1rdcZarrnWzBU37qk5GJiwHnDCpq2YSL+AuC Eq6IOvxBSqBn4bgKLdWOv1MeET08lFRbkmmejAilJbiURjQtVCZfsWDIVCd85e6v4b2o MXOBuJFgoszCBs7aXL1n44vYKmzqwv6cNo0wSUbuHmm5DWPNLg6Pe3+9KZniSf0DyDJY 7arg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ying.huang@intel.com designates 192.55.52.88 as permitted sender) smtp.mailfrom=ying.huang@intel.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from mga01.intel.com (mga01.intel.com. [192.55.52.88]) by mx.google.com with ESMTPS id l4-v6si22856569plb.213.2018.07.12.19.12.40 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Jul 2018 19:12:40 -0700 (PDT) Received-SPF: pass (google.com: domain of ying.huang@intel.com designates 192.55.52.88 as permitted sender) client-ip=192.55.52.88; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ying.huang@intel.com designates 192.55.52.88 as permitted sender) smtp.mailfrom=ying.huang@intel.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Jul 2018 19:12:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,346,1526367600"; d="scan'208";a="54012108" Received: from yongjuns-mobl2.ccr.corp.intel.com (HELO yhuang6-ux31a.ccr.corp.intel.com) ([10.254.213.67]) by fmsmga007.fm.intel.com with ESMTP; 12 Jul 2018 19:12:37 -0700 From: "Huang, Ying" <ying.huang@intel.com> To: Andrew Morton <akpm@linux-foundation.org> Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Huang Ying <ying.huang@intel.com>, Michal Hocko <mhocko@suse.com>, Johannes Weiner <hannes@cmpxchg.org>, Shaohua Li <shli@kernel.org>, Hugh Dickins <hughd@google.com>, Minchan Kim <minchan@kernel.org>, Rik van Riel <riel@redhat.com>, Dave Hansen <dave.hansen@linux.intel.com>, Zi Yan <zi.yan@cs.rutgers.edu>, Daniel Jordan <daniel.m.jordan@oracle.com>, Dan Williams <dan.j.williams@intel.com>, Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> Subject: [PATCH] mm, swap: Make CONFIG_THP_SWAP depends on CONFIG_SWAP Date: Fri, 13 Jul 2018 10:12:28 +0800 Message-Id: <20180713021228.439-1-ying.huang@intel.com> X-Mailer: git-send-email 2.16.4 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/mm/Kconfig b/mm/Kconfig index b78e7cd4e9fe..97114c94239c 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -419,10 +419,11 @@ config ARCH_WANTS_THP_SWAP config THP_SWAP def_bool y - depends on TRANSPARENT_HUGEPAGE && ARCH_WANTS_THP_SWAP + depends on TRANSPARENT_HUGEPAGE && ARCH_WANTS_THP_SWAP && SWAP help Swap transparent huge pages in one piece, without splitting. - XXX: For now this only does clustered swap space allocation. + XXX: For now, swap cluster backing transparent huge page + will be split after swapout. For selection by architectures with reasonable THP sizes.