Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1141053imm; Mon, 9 Jul 2018 18:21:22 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdM6VvMa62/sum5mUNMX43xEeAIr5KLtCr5Z3h1lKGO6KEGYOd4z/yk+nN9VY7CNfVviAKh X-Received: by 2002:a62:2541:: with SMTP id l62-v6mr23674402pfl.0.1531185682824; Mon, 09 Jul 2018 18:21:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531185682; cv=none; d=google.com; s=arc-20160816; b=gagGfXQZmrrpuHgpX0rGD1o6lX2M+nnUXuIqJzJ8gUWtSQq7youdDKx6uVHikLUQhk Br6RecoPm82katAhtsxYVeanaNmgeUijuZLQ23HzYoM9YTAqBg2PJAk+Dg1Rls+N0YBN elnzfhb/Tu7ilEYZLQP1D/99wirBZcyL4Mvj9Cedca/jHDBb3ShCxTH5QHBlpAuvjJz6 L9Kh/HPlJUEGL8EcVinlmrCHAXsvXB+DomH94rYgIz28IcSOjt88W/kznD292spGVcKB WY3TMG/PoW20iJQGcq9Lcg16iFLuK5T8EnOIGNVyJ7qR98VxvQfWM1trmrvu9TqAsSmY oj8A== 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=uWPRFT7NaWc/32ZEY07Rlw8YEetIlD9Uxjr8gLPPkSE=; b=BuxPaLVeEPnid5aAmFmpxbNkpTqUR+TSDNIvNs33OkodPR8OwxNtDFsQ8IWeHpIVOx hJupPP/aGnJlLq6q2vq3p8V15QGOC6EPgybI3rtpgeTxz41kc4ixMk1hocsbGCH5XcbB Zk6ZVGElLO3R1RK730wyCdQFA+3BbYY+DHtvTzv+ek0knKy3oxKzNpE1LE8m2Bs6b6v0 NnwmNaXeTjyemm0vBV3hsUsX1sKNW3nr+1DES0Go8SYQGL2S3GwWdP9K3h5+O/WCQHUt t11gb/5ZK/clxM60GBdzqtHkz4PEl8hHUfebrR0QRugorrHB9IrioKrzOzepGRYGXo0k SmLA== 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 t1-v6si16684876plb.90.2018.07.09.18.21.07; Mon, 09 Jul 2018 18:21:22 -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 S933422AbeGJBTl (ORCPT + 99 others); Mon, 9 Jul 2018 21:19:41 -0400 Received: from mga05.intel.com ([192.55.52.43]:37307 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932993AbeGJBTh (ORCPT ); Mon, 9 Jul 2018 21:19:37 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Jul 2018 18:19:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,332,1526367600"; d="scan'208";a="214680778" Received: from yhuang-dev.sh.intel.com (HELO yhuang-dev) ([10.239.13.118]) by orsmga004.jf.intel.com with ESMTP; 09 Jul 2018 18:19:26 -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> Date: Tue, 10 Jul 2018 09:19:26 +0800 In-Reply-To: <4a56313b-1184-56d0-e269-30d5f2ffa706@linux.intel.com> (Dave Hansen's message of "Mon, 9 Jul 2018 09:00:53 -0700") Message-ID: <87wou3j3a9.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: >> 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. Best Regards, Huang, Ying