Received: by 10.223.176.5 with SMTP id f5csp2277014wra; Thu, 8 Feb 2018 11:14:02 -0800 (PST) X-Google-Smtp-Source: AH8x227Y2tMfcWBRT6SRBJiqxonBMwZfGX0aD4beReU++yspY8y0aFeaTJay3EptRCS+4loBd2vc X-Received: by 10.98.32.157 with SMTP id m29mr106114pfj.182.1518117242153; Thu, 08 Feb 2018 11:14:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518117242; cv=none; d=google.com; s=arc-20160816; b=QWGV831iE54LddVe5+w+58Gu+S5QqXXL5Af9QtgzJqDLqV1wo18+qQoYeQAmtVFDjM m5rWGpSHnKGE1Nl3oMy4oikl4ZvjTuPeaijNXEp8MkuqcQN/odcjz1GT7l9MinTD/WKD w+OUlZEMK1zEw6Cs0d2NcD3kCzqHTSalsdv5/lI7kxT7rAn6csFx1vngRSGv4yFrO3kM 1se+YmlkazmNMiSzgccvXKK8MOwOjxYrg+Rr1Hv4ckvCdBwQnvup2KJDHutRm0p4gX4m b8IvEnLkStKhttiIjuh2mdjEV4AzvGfxZGpaaj2yynOO71tnsj9C6keu8X6ZtiDYsLge CmQg== 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:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=xGFw7LVhCfGz9pTEiRTmUx1Fn7JYf9qZBI33h3GGnL0=; b=Wg8ssFQtsZF1hRka6VoNQIfJKSIoTyQtNe5SZcEkhVHzAyGvrayak+Gi1fEmSd9qNz 0g/ZGh3qR8r2UvaDDGNJpLVOM+TFkUlKrdaBYvPspl7TUij+PhTJ7yuVo5Qdq0dfcRVK vtv+NwkAkVY+qIwwUZcn0lXIYOOisgW1Om4un8tU/NC2kSNkvTSbc9TGPQyoPy7kHzbt RFBQnqitTIjgMk7S7GQZpXahlCWBKU3aAPsfFOqi2VT6ybh+6yjPMEppj8xCoDgsh2Ep BXeaRzddSOiDyocJxa33e+t80XFu9HuHnS66tMwKYzEvMUNAtr1rfbYP0RzR7M5NV9oE C7GQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=WKr+7E/u; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z9si404908pfl.34.2018.02.08.11.13.46; Thu, 08 Feb 2018 11:14:02 -0800 (PST) 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; dkim=pass header.i=@google.com header.s=20161025 header.b=WKr+7E/u; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752281AbeBHTNC (ORCPT + 99 others); Thu, 8 Feb 2018 14:13:02 -0500 Received: from mail-pl0-f51.google.com ([209.85.160.51]:42181 "EHLO mail-pl0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751544AbeBHTNB (ORCPT ); Thu, 8 Feb 2018 14:13:01 -0500 Received: by mail-pl0-f51.google.com with SMTP id 11so308810plc.9 for ; Thu, 08 Feb 2018 11:13:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=xGFw7LVhCfGz9pTEiRTmUx1Fn7JYf9qZBI33h3GGnL0=; b=WKr+7E/uAWma9vwLqQPBVaU3QgDQtym4dcOI8xyZqoEF0kf9iv9bfxoFjlCHenzgnq lA1nAjbBq57hWyjt8mk4G1NzjWRg6paylO2/qchAccBbR+gUWF2OQTDOog6e38OluJha sbwgaTpf268wsYoxdGW2oXxHkPGhWvlwCzabzqlwsxaJh5TTB6C9UBau/8SOkdyBQXLJ qLxVnt7bKQtyL28XSfnGCmPXLtWR3avsOLXeVSu6pGN9wR+NQQFaGwlAF0/lMYNb1XlO 9iNmAA1A5Vw6IhRArrU95fYkL0NCTYFoYKAFbJy1xklczSDA94nRBsFDyjgAUC7n1JOI XR3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=xGFw7LVhCfGz9pTEiRTmUx1Fn7JYf9qZBI33h3GGnL0=; b=b2pfj4+nwgE+4r1hv88fpfv8VSX8xPOEljL+JNuNis3+Lin/zI6HSx5c9gRgD5FRbd qtO+8fmvK/icCGci31N3esZTmUCNJ4PzsjtpB6wOIHNDyKiuO2LAVIUVp5Q6gTZOrO/z cbTYEPLSMJLdPtMjkgauTBE1/v0Djhn8sUiyCyJEg6R9g4wjhtqAkul7DrQ4IU+Ux4w2 oKT04+iHNEWAqgoqtZ7Ecblor9cvJ0ZoUXi2pvmjDwKDyiyu7WTWVyghdWmIk5B66Ywd ehKGuJmfY5ID86fr9M7bjqH4GkQiH079S8Y++tEPG4wW7gfzzzw6tEqgosdnyzEZSesS +Wrw== X-Gm-Message-State: APf1xPDzI57Y/Hb8jtQuy26D7l0meUt85SPgrfZHySdjt9prXXvTfseM LS9ZjDZMAAane0mjOTJ1l8+he4OBJQg= X-Received: by 2002:a17:902:424:: with SMTP id 33-v6mr55236ple.57.1518117180069; Thu, 08 Feb 2018 11:13:00 -0800 (PST) Received: from [100.112.75.197] ([104.133.8.101]) by smtp.gmail.com with ESMTPSA id a28sm1187777pfe.70.2018.02.08.11.12.58 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 08 Feb 2018 11:12:59 -0800 (PST) Date: Thu, 8 Feb 2018 11:12:48 -0800 (PST) From: Hugh Dickins X-X-Sender: hugh@eggly.anvils To: Anshuman Khandual cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, akpm@linux-foundation.org, mhocko@suse.com, hughd@google.com Subject: Re: [PATCH] mm/migrate: Rename various page allocation helper functions In-Reply-To: <5458c2c9-3534-c00d-7abf-3315debbf896@linux.vnet.ibm.com> Message-ID: References: <20180204065816.6885-1-khandual@linux.vnet.ibm.com> <5458c2c9-3534-c00d-7abf-3315debbf896@linux.vnet.ibm.com> User-Agent: Alpine 2.11 (LSU 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 8 Feb 2018, Anshuman Khandual wrote: > On 02/04/2018 12:28 PM, Anshuman Khandual wrote: > > Allocation helper functions for migrate_pages() remmain scattered with > > similar names making them really confusing. Rename these functions based > > on type of the intended migration. Function alloc_misplaced_dst_page() > > remains unchanged as its highly specialized. The renamed functions are > > listed below. Functionality of migration remains unchanged. > > > > 1. alloc_migrate_target -> new_page_alloc > > 2. new_node_page -> new_page_alloc_othernode > > 3. new_page -> new_page_alloc_keepnode > > 4. alloc_new_node_page -> new_page_alloc_node > > 5. new_page -> new_page_alloc_mempolicy > > Hello Michal/Hugh, > > Does the renaming good enough or we should just not rename these. I'll neither ack nor nack, I don't greatly care: my concern was to head you away from gathering them into a single header file. Though alloc_new_node_page seems to me a *much* better name than new_page_alloc_node; and I'm puzzled why you would demand this conformity of some but not all of the functions of that type. Hugh