Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965789AbcKOEAf convert rfc822-to-8bit (ORCPT ); Mon, 14 Nov 2016 23:00:35 -0500 Received: from TYO202.gate.nec.co.jp ([210.143.35.52]:33526 "EHLO tyo202.gate.nec.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933542AbcKOEAe (ORCPT ); Mon, 14 Nov 2016 23:00:34 -0500 From: Naoya Horiguchi To: "Kirill A. Shutemov" CC: "linux-mm@kvack.org" , "Kirill A. Shutemov" , Hugh Dickins , "Andrew Morton" , Dave Hansen , Andrea Arcangeli , Mel Gorman , Michal Hocko , "Vlastimil Babka" , Pavel Emelyanov , Zi Yan , Balbir Singh , "linux-kernel@vger.kernel.org" , "Naoya Horiguchi" Subject: Re: [PATCH v2 04/12] mm: thp: introduce CONFIG_ARCH_ENABLE_THP_MIGRATION Thread-Topic: [PATCH v2 04/12] mm: thp: introduce CONFIG_ARCH_ENABLE_THP_MIGRATION Thread-Index: AQHSOU807s/AHkLIAEyyqET6YZn3OqDTETcAgAWuzoA= Date: Tue, 15 Nov 2016 02:05:38 +0000 Message-ID: <20161115020537.GA8738@hori1.linux.bs1.fc.nec.co.jp> References: <1478561517-4317-1-git-send-email-n-horiguchi@ah.jp.nec.com> <1478561517-4317-5-git-send-email-n-horiguchi@ah.jp.nec.com> <20161111111840.GF19382@node.shutemov.name> In-Reply-To: <20161111111840.GF19382@node.shutemov.name> Accept-Language: en-US, ja-JP Content-Language: ja-JP X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.128.101.29] Content-Type: text/plain; charset="iso-2022-jp" Content-ID: <0248F00E8BCFE44385D7A43A376FB803@gisp.nec.co.jp> Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 407 Lines: 17 On Fri, Nov 11, 2016 at 02:18:40PM +0300, Kirill A. Shutemov wrote: > On Tue, Nov 08, 2016 at 08:31:49AM +0900, Naoya Horiguchi wrote: > > +static inline bool thp_migration_supported(void) > > +{ > > +#ifdef CONFIG_ARCH_ENABLE_THP_MIGRATION > > + return true; > > +#else > > + return false; > > +#endif > > Em.. > > return IS_ENABLED(CONFIG_ARCH_ENABLE_THP_MIGRATION); Looks better, thank you. - Naoya