Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp98880pxk; Wed, 16 Sep 2020 20:15:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFJbhhXdVjjNyzNqwDuWyYtGzcGBFbpizGkInf0tjBFwJkImnf6/P8vJarjjfNQ6uDDF2o X-Received: by 2002:a05:6402:1110:: with SMTP id u16mr30709267edv.253.1600312504097; Wed, 16 Sep 2020 20:15:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600312504; cv=none; d=google.com; s=arc-20160816; b=U7d9aZhhBmh00mtGIxjRhVhns08jkKrCkShYDVIUIi5dULyNuIX0mNYHazGay4rlPE yYgAU7FiMhWkF+98fYjXGrrVnuXE0mwuPbvCXVNXp0Wmgamc8B2cIic7sVgGwQ7zn9fM /lbKUP29JCAC5421JMz8HiLq2J7+lSfVEnlKCuLpnJIzULPNK4ClSRxE5Enh8IRz4maZ P+wF0mgNjyEJakBdocEon5HFZHoMMqtzhDsBYXwSyicr/0eh9P+JMR5VLzL6qqU9JRfo vrjebHSwqfx3tQ7aPBhKTRTSPdol4kgMbvvjkitHx04zsSLGfXlvSum4xUq0CngnTGys +7mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=GKghxhRLzhiu2qEyWdAXVHkgMgfdRZjJpRZm/WkUb6E=; b=W2QT9PPXpCo8khDnHaQLJpmpD6FLeqOvk29zlsFlZUqZMGdOyBd2+59ZSAt52e9FrQ +ctsIhczR8YMBRdF3V4MrA5P2phH5KBgWIJQ7E9vAI0mce4qLUmxBz9KwnTkivXZkTAT nj6wlrfoMro60L6TL1w88IoQMLN1mKhDtRVF38qRx4JdtbgytSKKElIEwi22pUh5J3R7 SCeCx5DgLekfQVFclcmyLcxytx43kXthf+XMph04K7MB7gfE2LCM/iarnrUz1Zcffje0 m7kUxKtwUqbnU0CjeI2Ed5tDlFQoFEwSH9w+2ovuqot3IUEQu36lfnh2xYJoBm0cSmu/ Q8oA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=ltKks9VB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id by6si13012231edb.31.2020.09.16.20.14.40; Wed, 16 Sep 2020 20:15:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=ltKks9VB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726011AbgIQDLj (ORCPT + 99 others); Wed, 16 Sep 2020 23:11:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725858AbgIQDLi (ORCPT ); Wed, 16 Sep 2020 23:11:38 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51208C061756 for ; Wed, 16 Sep 2020 20:11:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=GKghxhRLzhiu2qEyWdAXVHkgMgfdRZjJpRZm/WkUb6E=; b=ltKks9VB83KII8YUlizV4bPpRD iA1zhTL5/Kpf9GimjDqJWqFZ8LfscnshHqQzYV+axi3vd0GXpv5Ae2PC1K5iDHKorJtNBL0JQKRw9 wDn6JAY2u0o2cItqK9zfRP75bm3pkSpOT5N+OLewy3URZIT01WlEE3qx/r/8YiKh9DFARuep8UltU I+VyTDhFH2qghSIoU1ioHSP/9bXDL/oIZEyCxXs59Y9v7S4+u8KiT/IMxXbEW0aRUk0JLLiLFeRIw 0zIdIOhCeVfIUJvjslBjRPsNfLanYrAIlFXG3u6kzMiK/2UfMTq7f/6byYSElsF/dr81JQvp7B+H6 9wefTPNw==; Received: from willy by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIkKW-0006l2-Na; Thu, 17 Sep 2020 03:11:28 +0000 Date: Thu, 17 Sep 2020 04:11:28 +0100 From: Matthew Wilcox To: David Hildenbrand Cc: Qian Cai , Huang Ying , Peter Zijlstra , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrew Morton , Ingo Molnar , Mel Gorman , Johannes Weiner , Dave Hansen , Andi Kleen , Michal Hocko , David Rientjes Subject: Re: [RFC] autonuma: Migrate on fault among multiple bound nodes Message-ID: <20200917031128.GQ5449@casper.infradead.org> References: <20200916005936.232788-1-ying.huang@intel.com> <2fe2a22235a0474b4a3de939cc22c19affc945fd.camel@redhat.com> <91cfda06-0286-cb36-01fb-23cf28facee4@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <91cfda06-0286-cb36-01fb-23cf28facee4@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 16, 2020 at 05:29:41PM +0200, David Hildenbrand wrote: > On 16.09.20 15:39, Qian Cai wrote: > > On Wed, 2020-09-16 at 08:59 +0800, Huang Ying wrote: > >> static int apply_policy_zone(struct mempolicy *policy, enum zone_type zone) > >> @@ -2474,11 +2481,13 @@ int mpol_misplaced(struct page *page, struct > >> vm_area_struct *vma, unsigned long > >> int thisnid = cpu_to_node(thiscpu); > >> int polnid = NUMA_NO_NODE; > >> int ret = -1; > >> + bool moron; > > > > Are you really going to use that name those days? > > > > > > include/uapi/linux/mempolicy.h:#define MPOL_F_MORON (1 << 4) /* > Migrate On protnone Reference On Node */ > > Not commenting the decision for that name. It's uapi ... and naming the > variable like the uapi flag seems to be a sane thing to do ... hmmm ... Perhaps we could migrate to mopron / MPOL_F_MOPRON?