From patchwork Tue May 18 20:07:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Shi X-Patchwork-Id: 12265585 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 4A156C433ED for ; Tue, 18 May 2021 20:08:24 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id EDCDB61074 for ; Tue, 18 May 2021 20:08:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EDCDB61074 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 6C5928E0048; Tue, 18 May 2021 16:08:23 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 69C6E8E002F; Tue, 18 May 2021 16:08:23 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 517A48E0048; Tue, 18 May 2021 16:08:23 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0066.hostedemail.com [216.40.44.66]) by kanga.kvack.org (Postfix) with ESMTP id 171668E002F for ; Tue, 18 May 2021 16:08:23 -0400 (EDT) Received: from smtpin02.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id A334E8249980 for ; Tue, 18 May 2021 20:08:22 +0000 (UTC) X-FDA: 78155438844.02.A2511E1 Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) by imf29.hostedemail.com (Postfix) with ESMTP id 9985B798 for ; Tue, 18 May 2021 20:08:20 +0000 (UTC) Received: by mail-pf1-f177.google.com with SMTP id d78so7378569pfd.10 for ; Tue, 18 May 2021 13:08:22 -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=/SAb4GmBYcE1RUtznSnoMs9bVmPh+Fmyxo0FfvNKkrs=; b=qTXntNfCiZwDGQEMfk2x4vS/wIHq7eq4cub1djq6BDGbwCBDouuYnFDUTkEFw3sFa/ zXWj8Nzwt0d0vegm5TRX283djZ5lKzUQjPLS0U63PhhBUsHvuJ8Z79joQnd2+wXFpAns JmojxPXqAm+C6/6DgPjRJi0A2Sth57/vRHGakaHuw6l2qEBDclnVpk8tQXA3eQeMSxHy Y/tpdSguaArIG6gQtegc9JdHB3DAWLvaY5cKnmMxkJtKy/Fg9Y8Zyj/OjuauGSTkT48M +AaZmb86n3/I2wGP7wDfP7ikDmqCiHxKmGvCRdRNA1fxGVW0rDjnKBgFnJ/95hefATz4 yIEQ== 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=/SAb4GmBYcE1RUtznSnoMs9bVmPh+Fmyxo0FfvNKkrs=; b=VC5acx72SN4RNgFY82jKuKk6TKcVB5tIliMa2+CXwVbcFFIJ5wai+GRgPvTgGObKnA lz5eC6Y4AxIcK41FB0KXmu5gdLvBHC107++ppu7/a1OxKuT4q3NbsKQK51NA7F+2Gnqa DBJuENxA3salz1PvMECuyJuBgaOKBgZq32w98E+trx3HOHxFVRDAbz+QRvkf+Ma2FaQZ 6AeBxWYrhTiq1624Jn8wq1AkOqC+M+3k26ARFYVh7xJ/iLuV3ZVENVQR4jwpDU5Ocjcf h8BbuF9BRm/Zo9/pDDs/9YSQ/Trr8IxMrV5/Tv6CQSiMWwmw0RKq8XXdbFZO37X4T1W5 9IkA== X-Gm-Message-State: AOAM533l2uY8MZfrw6SgYM0kvRb181D+usEbpRkeUpGkBZu2AUHR5z8c WgozTa514QSce4Jc/hvp4Gw= X-Google-Smtp-Source: ABdhPJzE79+gi8tH257NdQjO8LFM/9zlnlCFxksOY0avdvvvpts3EqA18TbkrxA3iV9ASa/7lH41oA== X-Received: by 2002:a65:50c5:: with SMTP id s5mr6792668pgp.138.1621368501491; Tue, 18 May 2021 13:08:21 -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 r11sm13456600pgl.34.2021.05.18.13.08.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 May 2021 13:08:20 -0700 (PDT) From: Yang Shi To: mgorman@suse.de, kirill.shutemov@linux.intel.com, ziy@nvidia.com, ying.huang@intel.com, mhocko@suse.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: [v3 PATCH 2/7] mm: memory: make numa_migrate_prep() non-static Date: Tue, 18 May 2021 13:07:56 -0700 Message-Id: <20210518200801.7413-3-shy828301@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210518200801.7413-1-shy828301@gmail.com> References: <20210518200801.7413-1-shy828301@gmail.com> MIME-Version: 1.0 Authentication-Results: imf29.hostedemail.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=qTXntNfC; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf29.hostedemail.com: domain of shy828301@gmail.com designates 209.85.210.177 as permitted sender) smtp.mailfrom=shy828301@gmail.com X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 9985B798 X-Stat-Signature: q9drwjgb5ehxsi14xeqz9ujib9k8bc15 X-HE-Tag: 1621368500-551447 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. Acked-by: Mel Gorman 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 8a176d1d0176..28fc471b4669 100644 --- a/mm/internal.h +++ b/mm/internal.h @@ -653,4 +653,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 f9df3ab12813..a2f2c2a8d28e 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -4129,9 +4129,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);