Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp561418imm; Wed, 23 May 2018 01:33:26 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoij3Cp8UfdC1JL2UJa+8087h2eSNSz6Lf6hMijhXVS8DHw7ktsqsjvnumkRWIj144r0+z1 X-Received: by 2002:a17:902:7d09:: with SMTP id z9-v6mr2058978pll.4.1527064406825; Wed, 23 May 2018 01:33:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527064406; cv=none; d=google.com; s=arc-20160816; b=xfeWpG2A7/Qckzbt+4Cgp3wM9q0HFrlqyFc/6R6xIQ37iWGqXUePB4Qh5zQ6yRqVPV ugipZODUxtNEZAnmEeeH0szxDWsBZ0EHsalyA3CKTGkFpPF/8DiF1YL03DJkiEWiOv8Z zpxItkCkVLqyf/41DArYMRD+DAU3kEXqrzHwLQ7BrSKSqcHks9i3ErQUGOutY4KkpvQD ygNjMrs8B0OtVg1Q6rNaBAd76mJLQkZI+wyN88k4XyduaXvh2cyehXHjuH2AoVqARzzi AtBwHNjaBn6jBgutp3Aw7HlEk8ZvXY6rrVv/IaQZ5OqpQ9c1GWZxaTIYrQTKDVV+z5YT Ejsg== 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=0y2jlGF0M9QjVJcN8c4MweImKFgV6iBSDs0ZpPuopQo=; b=a2Ev5KssalyaIHunpPxrvWldciPlzammBoHNBpznrxh/6NM77Y2+vEw8pR4rxwkrh8 8RwrVBtlTUCqGCm5ArzgnrnJTG7BprMcQc/9W2I1gA9Cr3PGGLyRYqiVDfNYzvxetjtj AoQJsvnQQU9nhBVR4xxjS8oENRRzdetO6cs8Q5FaLPwN7fXVJGwfGwrQof6z0LGAi/3e t7V+rywluyOk+kP+xTzUDMMODT+YKkDlR9M0LAdRttPQMq0USd0MINY9I4YTviz1h9oR Q/sJu9LB8H1UdCZWQ4kr5IXPhpNiO9y3f6G6uzv9Pe43Wgm3QfkSYY3Q0fibTgkksZAT Qksw== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o33-v6si19763127pld.170.2018.05.23.01.33.12; Wed, 23 May 2018 01:33:26 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754501AbeEWI0n (ORCPT + 99 others); Wed, 23 May 2018 04:26:43 -0400 Received: from mga03.intel.com ([134.134.136.65]:7695 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754403AbeEWI0h (ORCPT ); Wed, 23 May 2018 04:26:37 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 May 2018 01:26:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,432,1520924400"; d="scan'208";a="57725954" Received: from yhuang6-ux31a.sh.intel.com ([10.239.197.97]) by fmsmga001.fm.intel.com with ESMTP; 23 May 2018 01:26:34 -0700 From: "Huang, Ying" To: Andrew Morton Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Huang Ying , "Kirill A. Shutemov" , Andrea Arcangeli , Michal Hocko , Johannes Weiner , Shaohua Li , Hugh Dickins , Minchan Kim , Rik van Riel , Dave Hansen , Naoya Horiguchi , Zi Yan Subject: [PATCH -mm -V3 02/21] mm, THP, swap: Make CONFIG_THP_SWAP depends on CONFIG_SWAP Date: Wed, 23 May 2018 16:26:06 +0800 Message-Id: <20180523082625.6897-3-ying.huang@intel.com> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180523082625.6897-1-ying.huang@intel.com> References: <20180523082625.6897-1-ying.huang@intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Huang Ying It's unreasonable to optimize swapping for THP without basic swapping support. And this will cause build errors when THP_SWAP functions are defined in swapfile.c and called elsewhere. The comments are fixed too to reflect the latest progress. Signed-off-by: "Huang, Ying" Cc: "Kirill A. Shutemov" Cc: Andrea Arcangeli Cc: Michal Hocko Cc: Johannes Weiner Cc: Shaohua Li Cc: Hugh Dickins Cc: Minchan Kim Cc: Rik van Riel Cc: Dave Hansen Cc: Naoya Horiguchi Cc: Zi Yan --- mm/Kconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mm/Kconfig b/mm/Kconfig index ce95491abd6a..cee958bb6002 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -420,10 +420,9 @@ 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. For selection by architectures with reasonable THP sizes. -- 2.16.1