From patchwork Tue Apr 13 21:24:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Shi X-Patchwork-Id: 12201453 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.5 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 77F72C433ED for ; Tue, 13 Apr 2021 21:24:35 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 070BB61242 for ; Tue, 13 Apr 2021 21:24:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 070BB61242 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 9DE1F6B0074; Tue, 13 Apr 2021 17:24:34 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 93FF56B0075; Tue, 13 Apr 2021 17:24:34 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6F5406B0078; Tue, 13 Apr 2021 17:24:34 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0148.hostedemail.com [216.40.44.148]) by kanga.kvack.org (Postfix) with ESMTP id 5407E6B0074 for ; Tue, 13 Apr 2021 17:24:34 -0400 (EDT) Received: from smtpin33.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 1A13082499A8 for ; Tue, 13 Apr 2021 21:24:34 +0000 (UTC) X-FDA: 78028622868.33.78FA004 Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) by imf19.hostedemail.com (Postfix) with ESMTP id D0EA690009F2 for ; Tue, 13 Apr 2021 21:24:18 +0000 (UTC) Received: by mail-pl1-f179.google.com with SMTP id d8so8931274plh.11 for ; Tue, 13 Apr 2021 14:24:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=q1ZBdEMq+3MjnBJy65dpAKj+xf+cUYHcWFOoNEXmf+M=; b=SvB9X8lBvtivut2BA5VI0UZ2NrD4YaT93CUQv7Q6uXHLcuHfXSTe5LcXe9DiMnEe0Z eVK6PupcUxdh0EFav96gan+YlGB2jFDZlBnVl0XlwTF4DAkE86Rvnl7DdRN12R2fItFL OFOZ+FyJBh0D875PdCB1VSZDiCk/D/oIvYU0W3FHQJmRctIEuSeKjqkLJ6fDEUW9sHJi Q3iA5gW5QEHByQ2mI85/5Q8wfINMRHx2JcMCPbesUHLRhDBDQ35rSKmxO/huerggbdPs T+VzKzVCiFxXIYn2xky/SNeVyWdA6wfjLaW/eFjOP8Kf5nlVae6e510LWUlOqONan4E4 IlYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=q1ZBdEMq+3MjnBJy65dpAKj+xf+cUYHcWFOoNEXmf+M=; b=d0rqeat4tAWdYYFOwMAGsWaoesne68N+UQBPEz4RaS9iZHcuZa+eigp3Is2lwZBB6b xVDg1yq2+iu3HGlPkBOg/42DKsj6FAu+1iMxgYUbUeBE6nro9RjWe3ldxgN9njlIvMtm OUmqdSQLGaSdwmLqhIAMRm6Piwvqu7aN8aB8fPLA3o92s0g3gOgyQd+XQftXYmPvHEft kzjkhk+FkO1op9AHJhfoVxz5C8JjxEoqdQIBTfH6WfdLPa94uLAh8qT5cz51FrUbWqlc cufd4uo/EJl+//Sn4+wDDYR3DQ5d3vOeUgDe82m2Y7DMMH1IrOSG8Lu1c/azhrnVJSeJ bmUQ== X-Gm-Message-State: AOAM532U9Bmb2JDmVjymOXcvOiGOhL97aYQh+gAVz3kW0DbIG8mgfc4X nFkQsDJRSyJ5M1GUW4cGMlo= X-Google-Smtp-Source: ABdhPJw3JAQ5VVCViHQ3J/0GRFEvDaPxbEcy3o1iaSfzjbRncHPT6v4ClCmjTBDlc/t0lyCX1Iqn9g== X-Received: by 2002:a17:90a:1188:: with SMTP id e8mr2144226pja.89.1618349073080; Tue, 13 Apr 2021 14:24:33 -0700 (PDT) Received: from localhost.localdomain (c-73-93-239-127.hsd1.ca.comcast.net. [73.93.239.127]) by smtp.gmail.com with ESMTPSA id fw24sm3069345pjb.21.2021.04.13.14.24.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Apr 2021 14:24:32 -0700 (PDT) From: Yang Shi To: mgorman@suse.de, kirill.shutemov@linux.intel.com, ziy@nvidia.com, mhocko@suse.com, ying.huang@intel.com, hughd@google.com, gerald.schaefer@linux.ibm.com, hca@linux.ibm.com, gor@linux.ibm.com, borntraeger@de.ibm.com, akpm@linux-foundation.org Cc: shy828301@gmail.com, linux-mm@kvack.org, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [v2 PATCH 2/7] mm: memory: make numa_migrate_prep() non-static Date: Tue, 13 Apr 2021 14:24:11 -0700 Message-Id: <20210413212416.3273-3-shy828301@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210413212416.3273-1-shy828301@gmail.com> References: <20210413212416.3273-1-shy828301@gmail.com> MIME-Version: 1.0 X-Rspamd-Queue-Id: D0EA690009F2 X-Stat-Signature: r6anywcjhirti5bmz75seyggssakp7z8 X-Rspamd-Server: rspam02 Received-SPF: none (gmail.com>: No applicable sender policy available) receiver=imf19; identity=mailfrom; envelope-from=""; helo=mail-pl1-f179.google.com; client-ip=209.85.214.179 X-HE-DKIM-Result: pass/pass X-HE-Tag: 1618349058-737962 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: The numa_migrate_prep() will be used by huge NUMA fault as well in the following patch, make it non-static. Signed-off-by: Yang Shi Acked-by: Mel Gorman --- mm/internal.h | 3 +++ mm/memory.c | 5 ++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/mm/internal.h b/mm/internal.h index f469f69309de..b6f889d9c22d 100644 --- a/mm/internal.h +++ b/mm/internal.h @@ -659,4 +659,7 @@ int vmap_pages_range_noflush(unsigned long addr, unsigned long end, void vunmap_range_noflush(unsigned long start, unsigned long end); +int numa_migrate_prep(struct page *page, struct vm_area_struct *vma, + unsigned long addr, int page_nid, int *flags); + #endif /* __MM_INTERNAL_H */ diff --git a/mm/memory.c b/mm/memory.c index e0cbffeceb0b..bbb38066021a 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -4119,9 +4119,8 @@ static vm_fault_t do_fault(struct vm_fault *vmf) return ret; } -static int numa_migrate_prep(struct page *page, struct vm_area_struct *vma, - unsigned long addr, int page_nid, - int *flags) +int numa_migrate_prep(struct page *page, struct vm_area_struct *vma, + unsigned long addr, int page_nid, int *flags) { get_page(page);