Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp376151imm; Thu, 21 Jun 2018 20:56:53 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ2tTAMK9J9WHzimiD/ASFngTt422TGBL7xAQ+aJQ7hQPryWJo8+vhHqL/zEHfO6LPpyhqd X-Received: by 2002:a65:4dc3:: with SMTP id q3-v6mr24686776pgt.331.1529639813018; Thu, 21 Jun 2018 20:56:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529639812; cv=none; d=google.com; s=arc-20160816; b=qwjdOowfQ4cK8B9v4GmlXrDl2uxl7UoPe0x1IvSxdiC3/aaqr3zg4KUbwPbScaLF0y 6DyJEJchcRELrFDp4pvLNlqNYc3Op6a4bI5GhhUgiirnzvU4ns8gAk1Zqvt0tzXQzdmR 4QTb27dv5fM/NH+U0kzt9uQB2bi90jmAzLwhyAZcH5qtosD6DAjreLXLEGND9e/ysoP7 qm3mmm37hlPSem5xCnrG6Ftxr53TzqniVgnCWHLtsjI2VBD8hRCPASFAIV15w5CBzUuA lJItEeRJVPGQIWzD2H+wREQBkC6XHA6aPMH9bU4ITN6vILl9AiumqybiSf/c7ISmNgPU QUiA== 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=6ot8l5PNSGBpaFuWxnGSb6WePe5Kdlb0Pk5ujnkmQZM=; b=iYRyzLRpGr9HuMUteO4RLbDzlloycWdOFariLmj3Fr88JChD1NHEGLfnUKXxvadL+g gtGQgyzcMYCs3DbsubpJYVZJqm+U62U2wh4ygwzMLK7cixYJCg74j7POY09yGQI4yT4x LsG4vA56wP4/Do87yD6BBWI1E9vnqhyYYEpOnqQKCPf6JICPPt1wkRd7TBE+Sy//SSvE 30RMjYa8E9fLOMOt1OtI+FCZuvCVTT4EabnMv2chUIiL9qpQgSZiOm3OzWh9wyex86fk EexzUKsoqOjx6NCULdJuZT/wGZsRpvEdHMLb/9NtHgA8BwjSgE34OKSg2mzmaTUHbe/u m6Mg== 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 r24-v6si6545762pfi.147.2018.06.21.20.56.38; Thu, 21 Jun 2018 20:56:52 -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 S934471AbeFVDzQ (ORCPT + 99 others); Thu, 21 Jun 2018 23:55:16 -0400 Received: from mga11.intel.com ([192.55.52.93]:48405 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934399AbeFVDzM (ORCPT ); Thu, 21 Jun 2018 23:55:12 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Jun 2018 20:55:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,255,1526367600"; d="scan'208";a="65335061" Received: from wanpingl-mobl.ccr.corp.intel.com (HELO yhuang6-ux31a.ccr.corp.intel.com) ([10.254.212.200]) by fmsmga004.fm.intel.com with ESMTP; 21 Jun 2018 20:55:09 -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 , Daniel Jordan Subject: [PATCH -mm -v4 02/21] mm, THP, swap: Make CONFIG_THP_SWAP depends on CONFIG_SWAP Date: Fri, 22 Jun 2018 11:51:32 +0800 Message-Id: <20180622035151.6676-3-ying.huang@intel.com> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20180622035151.6676-1-ying.huang@intel.com> References: <20180622035151.6676-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 Cc: Daniel Jordan --- 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.4