From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0FED2C001B0 for ; Fri, 11 Aug 2023 08:49:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232847AbjHKItH (ORCPT ); Fri, 11 Aug 2023 04:49:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229642AbjHKItF (ORCPT ); Fri, 11 Aug 2023 04:49:05 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5443213B for ; Fri, 11 Aug 2023 01:49:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691743745; x=1723279745; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=ai/YRh3QCC1guJLDMJwEqRgAl522bXGJHEYxxtVq6/0=; b=ABp/DIfBrLwpD1irtuAwQRFVHHhTepSaRKuYZm5OvUU6F5Beo3fqrnzU kf8X1i4KTRcVsFCVaAh9bINEJnDwHyfPxRqHpi4DDC+hm62miwmKzj653 F9j+qK1FmbTy7RS3W6XOiqDYPI/QfKnCapROOh9bun0Mgy0T4d5V7OaF9 UFZCr1c7cvGDGOnvLkQorkUA5r2YmjOVLLcpbg1Nm7eTafAnaF+JezRXn gA7/SZFd4W4tnbtiPK9cchja06AKawSNR/8jaM1LnaARAXmbKJwGWjMIq usykeDIfM6EB5vFFGX//5OZH+nL7JCBdZvObYDcGm761/TFX3avNxCW0J A==; X-IronPort-AV: E=McAfee;i="6600,9927,10798"; a="402604851" X-IronPort-AV: E=Sophos;i="6.01,165,1684825200"; d="scan'208";a="402604851" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Aug 2023 01:49:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10798"; a="732595957" X-IronPort-AV: E=Sophos;i="6.01,165,1684825200"; d="scan'208";a="732595957" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga002.jf.intel.com with ESMTP; 11 Aug 2023 01:48:59 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1qUNpI-007C1z-0j; Fri, 11 Aug 2023 11:48:56 +0300 Date: Fri, 11 Aug 2023 11:48:55 +0300 From: Andy Shevchenko To: Yury Norov Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Ingo Molnar , Peter Zijlstra , Andrew Morton , Ben Segall , Daniel Bristot de Oliveira , Dietmar Eggemann , Jacob Keller , Jakub Kicinski , Juri Lelli , Mel Gorman , Peter Lafreniere , Steven Rostedt , Tariq Toukan , Valentin Schneider , Vincent Guittot , shiju.jose@huawei.com, jonathan.cameron@huawei.com, prime.zeng@huawei.com, linuxarm@huawei.com, yangyicong@hisilicon.com, Rasmus Villemoes Subject: Re: [PATCH 1/4] numa: generalize numa_map_to_online_node() Message-ID: References: <20230810162442.9863-1-yury.norov@gmail.com> <20230810162442.9863-2-yury.norov@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230810162442.9863-2-yury.norov@gmail.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 10, 2023 at 09:24:39AM -0700, Yury Norov wrote: > The function is in fact searches for the nearest node for a given one, > based on a N_ONLINE state. This is a common pattern to search for a > nearest node. > > This patch converts numa_map_to_online_node(node) to > numa_nearest_node(node, state), so that others won't need opencode the > logic. > The following patches apply it where applicable. Doesn't sound like should be part of the commit message. -- With Best Regards, Andy Shevchenko