Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1296038imm; Mon, 9 Jul 2018 22:28:00 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfoVrJN3WJJgkTXfTt2VME0OjzOtOmxImH0Z1DXM2lBzefXSmtt3VuXmI62HO/3j68ZpKv7 X-Received: by 2002:a62:60c3:: with SMTP id u186-v6mr24305180pfb.230.1531200480364; Mon, 09 Jul 2018 22:28:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531200480; cv=none; d=google.com; s=arc-20160816; b=tDnBu3AX5qZHLCVuuj7XBn9G7Ta/vVMgJ3KpmjjVpV6z93ZlgP5sF0X9g07TZK+55w JNu/EfNPUNtUYWZFpowhRdGqYklHQmjjW6H1w7BPqTM6jD9hSEk0PYYEr1MXJ++n3kIZ G1LraQFKiD3YGYPxSFbGUHJ5IPKLTkx+zOQ95X7m8qw/Wd4zIz6e2aZTIE0kZDneg4sX Jm/+tZc+CqDmlz4bNZBeQvHpZN3AGdCB7Ow8VxjGFNLl6E+GvgskhN3GjD1BtCKLJrJ9 9owLX5JmNxAQeK09XBLDXkBXGB9f6l0Wx8V3jZKuf0DTXT4+4nOjdLSyrXbazBizLH7c t13w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from :arc-authentication-results; bh=S8s2O9PoVk+n6s82kKiLR2Tb8kSEDsgVNJ62SDHwsMo=; b=tSp8XmZUMvE4m50JqwG9fwZxgwxcJcce/KS8w+MmoB5GDeaVAXBPsoGIayZEpIfcfi bhRH/TYWU3JeRVo1ruh8weHpgdRiXI0yHkjQJUYg9yB7mp6dEX0RiTjzDw/HgOVy05/q JVMboTKBEkTXoKmWluZWM2Mn+3Pk11G8pLczU4BuyvoMgIUF21wUHQfkNOrIoeWYuBcE RdJPrzsh2mCjKgfR3rrTIizOtXGoIQvosZpsnRmroQMuLGHf/HUzYPCLhfOqlhyLH1nK 0DZ+F+kkIk1NIXrNtbPrhWGLkrTV8saM0eLQGc2Lh5/LBMTZNKuJMEkdTczDFeEgxuCo oB3g== 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 f1-v6si18178513plm.375.2018.07.09.22.27.45; Mon, 09 Jul 2018 22:28:00 -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 S1751042AbeGJF1A (ORCPT + 99 others); Tue, 10 Jul 2018 01:27:00 -0400 Received: from mga17.intel.com ([192.55.52.151]:43508 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750879AbeGJF06 (ORCPT ); Tue, 10 Jul 2018 01:26:58 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Jul 2018 22:26:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,332,1526367600"; d="scan'208";a="53220959" Received: from yhuang-dev.sh.intel.com (HELO yhuang-dev) ([10.239.13.118]) by fmsmga007.fm.intel.com with ESMTP; 09 Jul 2018 22:26:55 -0700 From: "Huang\, Ying" To: Dave Hansen Cc: Andrew Morton , , , "Kirill A. Shutemov" , Andrea Arcangeli , Michal Hocko , Johannes Weiner , "Shaohua Li" , Hugh Dickins , Minchan Kim , Rik van Riel , Naoya Horiguchi , Zi Yan , Daniel Jordan Subject: Re: [PATCH -mm -v4 02/21] mm, THP, swap: Make CONFIG_THP_SWAP depends on CONFIG_SWAP References: <20180622035151.6676-1-ying.huang@intel.com> <20180622035151.6676-3-ying.huang@intel.com> <4a56313b-1184-56d0-e269-30d5f2ffa706@linux.intel.com> <87wou3j3a9.fsf@yhuang-dev.intel.com> <66d12d39-5079-c836-744c-ee97ce40d553@linux.intel.com> Date: Tue, 10 Jul 2018 13:26:55 +0800 In-Reply-To: <66d12d39-5079-c836-744c-ee97ce40d553@linux.intel.com> (Dave Hansen's message of "Mon, 9 Jul 2018 18:59:14 -0700") Message-ID: <87d0vvirts.fsf@yhuang-dev.intel.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=ascii Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dave Hansen writes: > On 07/09/2018 06:19 PM, Huang, Ying wrote: >> Dave Hansen writes: >> >>>> config THP_SWAP >>>> def_bool y >>>> - depends on TRANSPARENT_HUGEPAGE && ARCH_WANTS_THP_SWAP >>>> + depends on TRANSPARENT_HUGEPAGE && ARCH_WANTS_THP_SWAP && SWAP >>>> help >>> >>> This seems like a bug-fix. Is there a reason this didn't cause problems >>> up to now? >> Yes. The original code has some problem in theory, but not in practice >> because all code enclosed by >> >> #ifdef CONFIG_THP_SWAP >> #endif >> >> are in swapfile.c. But that will be not true in this patchset. > > That's great info for the changelog. Sure. Will add it. Best Regards, Huang, Ying