From patchwork Tue Dec 3 09:47:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Hildenbrand X-Patchwork-Id: 13892061 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id B6C12E69E88 for ; Tue, 3 Dec 2024 09:47:51 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3D9EA6B008C; Tue, 3 Dec 2024 04:47:51 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 38A8E6B0092; Tue, 3 Dec 2024 04:47:51 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1B6FE6B0093; Tue, 3 Dec 2024 04:47:51 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id F04316B008C for ; Tue, 3 Dec 2024 04:47:50 -0500 (EST) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id B185B1A07C9 for ; Tue, 3 Dec 2024 09:47:50 +0000 (UTC) X-FDA: 82853170680.21.3D77047 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf06.hostedemail.com (Postfix) with ESMTP id 6EA3518000B for ; Tue, 3 Dec 2024 09:47:39 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b="Jj/aFMTI"; spf=pass (imf06.hostedemail.com: domain of dhildenb@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=dhildenb@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1733219254; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=LU3Y8BABokL9EuVXZz3YTSIe3emDP78aZncO4AsTCRE=; b=ar8KljegjRA3f6SVCq/OlGWpRqAoCMOGuv6vd2mTxNksf66mh0Q5d5dPP/4lzI5c+O5gsa h58b6H4tkbAJ7mnKeqG7Sb7DFtUUm8iFV3B3ameDoxaVFsZ+taMweVlSCE1BhfMH2rVzPZ QdLZhmGPBPMyYKLr3UuzuMkUZbUhuN4= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b="Jj/aFMTI"; spf=pass (imf06.hostedemail.com: domain of dhildenb@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=dhildenb@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1733219254; a=rsa-sha256; cv=none; b=Ft9526z/X4qmrZAmyUDIQWqE1vnP/faM4PuZzmvwthhq4EmSec+5D7IGIoMWflzMNTTWhB ATsMkQusoDdDgaX56zLL3qu4kCW1uRrYQ73xOCfs6sWZivmM5V6WgRNYmzX3Psu0KmmJaR BkdP13FEhm2/AaDhIdH4UczGtukGLN8= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1733219267; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LU3Y8BABokL9EuVXZz3YTSIe3emDP78aZncO4AsTCRE=; b=Jj/aFMTI+hjvOX7PsuVwh6r6GjKkYjJcr3qMoJighry7wZtUviI66+d7NPqiC2lzwVA2Cj Du2W3XGJ1/IqQ5ZkZ0lQ64D98XNqk2zd/Aq4HW7BwQWKrlsE9em9JX6A0Aqo9B9D2Pg5iA QRGRMHYbvf2lGdOq8Aq5crOggGbw2ko= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-350-6XD8j_qpOpSV1h0i1eQkVA-1; Tue, 03 Dec 2024 04:47:46 -0500 X-MC-Unique: 6XD8j_qpOpSV1h0i1eQkVA-1 X-Mimecast-MFC-AGG-ID: 6XD8j_qpOpSV1h0i1eQkVA Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-434c214c05aso18468155e9.0 for ; Tue, 03 Dec 2024 01:47:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733219264; x=1733824064; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LU3Y8BABokL9EuVXZz3YTSIe3emDP78aZncO4AsTCRE=; b=TePSYLCbDmvYcqe1GGqhoZ19hhSDdvHvHviKzAUYkoEkQsUIGVoYTP+CHaW2cpF82N U+SCFCPNoidoVDge0F/VnPwN5BVT6dhtnpq0ZxqINtovJaetwiIXbJHeTz/+aEaaTuCu kiIj9J6bmVRoLIWgzD58daJ0FzAHENuRlkyEMqY/Kc3eEkJlw602ufgwZiv5gA+EwgNM cv4n2x6NByRiZ+YpFnlplIS56whwLxKYarQYkLfgD2cfBG/7o45MFIr8GvYjzGo6WUbu kGKMOc/10Al4SNuVOTy16LfABPuxvD3airqn26mda/aCnKlDfHANPYzEqegMITqbd4mR v1RQ== X-Gm-Message-State: AOJu0YwNCz+/2Vr0ClcRcVXe7fL5p9bvZKgyuTGOYeE4UWfHs04B5Z63 2wUUx2/Fv+V97toSxRNzAqgv+3Abo+ix9PHar3f5rq10rFnGyHoCXTFUfdLk1tE0B4X4bY76Yw9 gxDXffZ4OEM9MiDADQOtqaadsDNfKYbAj/0ctCptKis0xvX6P X-Gm-Gg: ASbGncup5PzYBKczmYj+cT1qkBv9NepFgjM6faOEuSDYq2RNRYm59wJJ1QNMBc7cNFM KlpHJYTdzCEv+gbKTWwx5mENeXtowLfO6YirwpiMSuwUEt++AqkT+XHzDCO8+2w5VCDub+VB/D0 3LeCEVYK6TH8T3Y3sDbOYxrL/WyvjQDpdjVxRPAB+f5L1Gst7w+VFwjL6DlQrUr3a8mj4q8Y3UK R/XBTAOGZsoaumN59d9I8XCU748aVoOxilYOS7hgOZaN52zji2yVlotZ+io/KFZ/SB4wEdaficl xLh0ooLHG5PdGSQ1+14wnff9ipSG2fAGxgk= X-Received: by 2002:a05:600c:1ca2:b0:434:9e1d:7626 with SMTP id 5b1f17b1804b1-434d0a03d92mr14496195e9.25.1733219264335; Tue, 03 Dec 2024 01:47:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IF3m9gr407PRBCaVgPUBaqcArqFbwV0w48JRDx7WvhZgMUXfRC/MZaf7nSG/r3cgNlikqmXCw== X-Received: by 2002:a05:600c:1ca2:b0:434:9e1d:7626 with SMTP id 5b1f17b1804b1-434d0a03d92mr14496015e9.25.1733219263982; Tue, 03 Dec 2024 01:47:43 -0800 (PST) Received: from localhost (p200300cbc7461b00fd9ec26cc5521de7.dip0.t-ipconnect.de. [2003:cb:c746:1b00:fd9e:c26c:c552:1de7]) by smtp.gmail.com with UTF8SMTPSA id 5b1f17b1804b1-434aa7e5e59sm218218545e9.44.2024.12.03.01.47.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 03 Dec 2024 01:47:43 -0800 (PST) From: David Hildenbrand To: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, linuxppc-dev@lists.ozlabs.org, David Hildenbrand , Andrew Morton , Oscar Salvador , Zi Yan , Michael Ellerman , Nicholas Piggin , Christophe Leroy , Naveen N Rao , Madhavan Srinivasan Subject: [PATCH RESEND v2 3/6] mm/page_alloc: make __alloc_contig_migrate_range() static Date: Tue, 3 Dec 2024 10:47:29 +0100 Message-ID: <20241203094732.200195-4-david@redhat.com> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241203094732.200195-1-david@redhat.com> References: <20241203094732.200195-1-david@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: qFG2o7hHIOelwGsGQMxurzPqfcvStTVJKNJAlPBcCVQ_1733219264 X-Mimecast-Originator: redhat.com content-type: text/plain; charset="US-ASCII"; x-default=true X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 6EA3518000B X-Rspam-User: X-Stat-Signature: 4ikxowg4no7kpceaqwmos8r67ibi5ruo X-HE-Tag: 1733219259-953228 X-HE-Meta: U2FsdGVkX19zzwCjdcHc78cOqGWiJj4TPRGWzudMW96PeNu/y5/k6blpYiqVT28MuKq2NLhdgSTmJyBBNQ/0JXSL9P6fBj3Hi9R29hrTSRgtcfcCDl7lTLhqosqie1kLWw1lXhFpDR0TeYw35Uns2YNQsZ/pbSVWqoIXuYX5YWzaeZvxjRPm/NntAkZAyFyg2MT9lw7lB0AecnNYj0hlWGIh+L+yFDjP7MXCfxVW9DgyCZf0KKqrlD43T3vbiCk8FsyKYHA3J22NwuyyQeiPKVqw9msWBJwqATlHCjq3WzN2JUd5yd2tAqgyrJyqdSoin9v1jrg7h/S5Pj9RkU8COH3q3t1LSSaxlWy6NSe38Rj5vxpRDirj8RU4xNNWMVAdbCx0SNiWSDqmzAd/zqVzz5E9RmdeAkrs/3BoRfSrtJ9sZINs2G4MeSGNm68JdaeiNXxjz41Yetlwqk5XrMpBUFczdlI9U8fdknQjCPh7EF3coMlzxKvI1PjHbIPzlkKCOATo7ombJAqRHSJfNeioUoXoOb1tlvP9NDq9H2tFDuBQQA/RjLrjo/6C2Xw0n4UUGzmioIZ0YqJpP08pPZMBlaQCiEnNRSzU+rq4iPVVz03hfFBW7TTSkWU2mXGLWOnhvRC0oDNUezpW53/IoI2pbvqojjSpETB2BjaUg0ociaqBIM4EtqLm2Lg+u0yXqipoGZwCGCE3YSY3eos70xM0OsPb8HpkSicyId0BpA0zCgDOg5+RoWs8k801LgVL7PMPLYDkgTFM20CNwc2ptk1YG7+EX9d6Lo7VsioQYGOVvE7P6kTuRTcpYTwbQkslWApkPDvkFnZBtBLYTO0GJxoF+eerGKcDc61vO+ljmaT+rS39qCUaE6HYlpNMYSgLlWWK7yG9IIvmdnnScZvuukMUWy+o88uZc3vlf6cN97DYaE9TpV52XF/a1Hg+9DhAvi/ZjTGDENuVvnR2hzBfot+ nSGjOwGV 4TH7or2cG9W8R3xMjf6UZOUfkgq4OMSFtzzG4Lc4DqUOVwDYUoy40y9KTuDfzUR+kilsEexbJ/oje4fEoV+Ln0HAzVMdYeZ5/pHb2DbsPmvZa2cjMfnsNEIOky8UUvNsnR4gLQD/QL0GT+NGk7Us0IMIgIuicATkkrJzIzcwemASE+KqdYAu9nvOsmcBBh0n/SSdpSUyfa6PqmzfuW6xh/ic9qOr2SUS1FP8mfxnOdBX5i2TWSXTn57bQwOLVVrErpg3tjt9a1vcLCrrzjWCNtkI/J8nGj8HGSMY7gN4LdQHXjjBSIXVnOuyn8ahM2SY8wcBM2pF78VNrYS/5a8dQ3m5pIp+s34CvZOdOhzJEml+YyaZ/YH6Lku3vTpappMqrTssL34oPLSrU5VlDYd7ZbKz6Cl9lsflNlAMjoxUWfIVftEgV9F6LAkCl2Wzom0WMp2NjAGf0U/kWHmCwREuQVKm6xaPPCY8p5rW/C5B5PWXY+nOI7KQgfqIJwWet3b8HUGqS 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: List-Subscribe: List-Unsubscribe: The single user is in page_alloc.c. Reviewed-by: Zi Yan Signed-off-by: David Hildenbrand Reviewed-by: Vlastimil Babka Reviewed-by: Oscar Salvador Reviewed-by: Vishal Moola (Oracle) --- mm/internal.h | 4 ---- mm/page_alloc.c | 5 ++--- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/mm/internal.h b/mm/internal.h index 74713b44bedb..4bd3685c33ef 100644 --- a/mm/internal.h +++ b/mm/internal.h @@ -839,10 +839,6 @@ int isolate_migratepages_range(struct compact_control *cc, unsigned long low_pfn, unsigned long end_pfn); -int __alloc_contig_migrate_range(struct compact_control *cc, - unsigned long start, unsigned long end, - int migratetype); - /* Free whole pageblock and set its migration type to MIGRATE_CMA. */ void init_cma_reserved_pageblock(struct page *page); diff --git a/mm/page_alloc.c b/mm/page_alloc.c index f371fbf2145b..ce7589a4ec01 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -6284,9 +6284,8 @@ static void alloc_contig_dump_pages(struct list_head *page_list) * @migratetype: using migratetype to filter the type of migration in * trace_mm_alloc_contig_migrate_range_info. */ -int __alloc_contig_migrate_range(struct compact_control *cc, - unsigned long start, unsigned long end, - int migratetype) +static int __alloc_contig_migrate_range(struct compact_control *cc, + unsigned long start, unsigned long end, int migratetype) { /* This function is based on compact_zone() from compaction.c. */ unsigned int nr_reclaimed;