From patchwork Mon Mar 29 18:33:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Shi X-Patchwork-Id: 12170761 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 5C33AC433DB for ; Mon, 29 Mar 2021 18:34:08 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 076AA60231 for ; Mon, 29 Mar 2021 18:34:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 076AA60231 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 9A0A86B0081; Mon, 29 Mar 2021 14:34:07 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 965E16B0082; Mon, 29 Mar 2021 14:34:07 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 806236B0083; Mon, 29 Mar 2021 14:34:07 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0063.hostedemail.com [216.40.44.63]) by kanga.kvack.org (Postfix) with ESMTP id 5FA536B0081 for ; Mon, 29 Mar 2021 14:34:07 -0400 (EDT) Received: from smtpin32.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 27DC645A8 for ; Mon, 29 Mar 2021 18:34:07 +0000 (UTC) X-FDA: 77973761334.32.AE94FA5 Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) by imf09.hostedemail.com (Postfix) with ESMTP id AE3D26000126 for ; Mon, 29 Mar 2021 18:33:49 +0000 (UTC) Received: by mail-pf1-f172.google.com with SMTP id q5so10410103pfh.10 for ; Mon, 29 Mar 2021 11:33:50 -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=FYsTycVF/lf5Suqc/le+NiU66k2yrrkWCgrAdMasvHQ=; b=EwRoKPvlF7FWX9zpVxFvTd+9Gbfv+po1sNagOi00oOc4hc08cqDJyvrx/d9Nj7oiXe 8QNj4EBukFzHkr2WG9TLfdQZnqiZuslYs9rrJA3QsutNFZqVYaEw7xiB4CwhLTbmU9XL HoTsTBCB3fYRFi4OZM5ZADxflQ5OiqwrSBnxO8vrMxYRZO05CzSn6wnGJDqOGwQUU20t /IK3nNMn8ZM+UlafqfarLjZJGVX2HrEwnE0HcjskCVHfm+ykKtnmRXxZE/tsnHVd7/hs xBr0jt4STA/4Zd+HAehlVwRRBEFaqdUk/hUixGzinRD20IS+IvGgnoDG7MNN8L3aQ1g+ U0lA== 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=FYsTycVF/lf5Suqc/le+NiU66k2yrrkWCgrAdMasvHQ=; b=MpA8D2qtXXvqkIj1P6wSAr3xGW01LgUvNdPGAye+8Z+MQRm5alUrLYDNAMElhyPROP UROaE753B0EY8IKWxVrP0xZmC7AFO12I8R2CJvdwDVhLFg2lYnKGg/xuUAlGDfB2uTbc z8MOL3JRzlXlQEsSYaqgDO0EwYIlN13c5BR61Tn7A97ebxWVxspD3UaJkk/BsDxUs2NV zzniqoJhIMLpBNGLuhx7CLEWXlzlLK/ssUpv1OOF5MopujuGM2qXAW3KMP93GPupCSEp jwVINO1JrpPXSvr6jcqJ+B5N7NHQESgMohYi9LmDdRP6L7Pyuipr5WztvmczItGhy7Kn 90gw== X-Gm-Message-State: AOAM531i14EgGVSaobplfrSY+jEhZqJzOzdYJ2XgPMR0pbcfoiTo9ahk YMP2dljcoFhGrByRxArCOmM= X-Google-Smtp-Source: ABdhPJyUwLv/aBlbpIZMlUWrgzevZQFoOKfq2lF1E8ilUH/PStCQt54+emM0GTOxUo68jPoyEJbLWA== X-Received: by 2002:a63:1f1e:: with SMTP id f30mr25650718pgf.141.1617042825188; Mon, 29 Mar 2021 11:33:45 -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 x11sm1151158pjh.0.2021.03.29.11.33.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Mar 2021 11:33:44 -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, 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: [PATCH 2/6] mm: memory: make numa_migrate_prep() non-static Date: Mon, 29 Mar 2021 11:33:08 -0700 Message-Id: <20210329183312.178266-3-shy828301@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210329183312.178266-1-shy828301@gmail.com> References: <20210329183312.178266-1-shy828301@gmail.com> MIME-Version: 1.0 X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: AE3D26000126 X-Stat-Signature: 75ep7dzg37ste6e9u7a1s8p6h5aek9g9 Received-SPF: none (gmail.com>: No applicable sender policy available) receiver=imf09; identity=mailfrom; envelope-from=""; helo=mail-pf1-f172.google.com; client-ip=209.85.210.172 X-HE-DKIM-Result: pass/pass X-HE-Tag: 1617042829-240156 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 --- 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 1432feec62df..5ac525f364e6 100644 --- a/mm/internal.h +++ b/mm/internal.h @@ -618,4 +618,7 @@ struct migration_target_control { gfp_t gfp_mask; }; +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 33be5811ac65..003bbf3187d4 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -4078,9 +4078,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);