Message ID | 20231211155652.131054-18-david@redhat.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 90BD4C4167B for <linux-mm@archiver.kernel.org>; Mon, 11 Dec 2023 15:57:53 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4CF996B0117; Mon, 11 Dec 2023 10:57:49 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 42FED6B0118; Mon, 11 Dec 2023 10:57:49 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2DDDF6B0119; Mon, 11 Dec 2023 10:57:49 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 18E096B0117 for <linux-mm@kvack.org>; Mon, 11 Dec 2023 10:57:49 -0500 (EST) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id E70D780691 for <linux-mm@kvack.org>; Mon, 11 Dec 2023 15:57:48 +0000 (UTC) X-FDA: 81554993016.22.98E4CAD Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf15.hostedemail.com (Postfix) with ESMTP id 24CADA0006 for <linux-mm@kvack.org>; Mon, 11 Dec 2023 15:57:46 +0000 (UTC) Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=WQeemRLz; spf=pass (imf15.hostedemail.com: domain of david@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=david@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=1702310267; 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-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=JUV4YjA/avU6lZdC2uH9xVMs5FHkuyGC756X6BS6p9Q=; b=5r4Gm4QD6KGdNGoDeHjDQ/qJt6j4QDeqmaj6o4kL7wK0mwPGvJZK4yOXpUEtd/LDjji+MB cXM2VvlYRAky+hCMHC7eb95pwvdHUB7PWU0VxNTBYfhiiXpWFQx4l4ivFzVJPbl6hXwPQ9 e6no8cqOsoNwHCPQKiNcnQkzzcPTgzA= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1702310267; a=rsa-sha256; cv=none; b=NXbK73XV1i9VShLmEqHA60QPver7Oc0nrvKUMFK6SXiLq/5iYUHm5FPD/E3apqEhAxMXDa V+Hq5n8iE1DVzcOO5wcJLvj/Dhw73NFSvCXzgbadFnt4w3fvC2l//5UyTqyy+79XOgMfhP wm3jWwGUcGW2/WVyMsoorKb+9pj9BAE= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=WQeemRLz; spf=pass (imf15.hostedemail.com: domain of david@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=david@redhat.com; dmarc=pass (policy=none) header.from=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1702310266; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=JUV4YjA/avU6lZdC2uH9xVMs5FHkuyGC756X6BS6p9Q=; b=WQeemRLzn1CudUMSDad25WhZtNalq2qADrM2qFwEksIiKgj0cqgFUAj0hgY/GDuKjuodZ0 /JDnbpPt7Pnnt855D26SIuYhNPTX4Jw4Jscy6ZAlB0+ukqzsM0uFmh3gCZaSxd2K14H15+ 6XmqW4wVTUp18hRtIsALBrmlFt0bO48= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-501-MIk6dcdIMbiRE_u7hAYpUg-1; Mon, 11 Dec 2023 10:57:39 -0500 X-MC-Unique: MIk6dcdIMbiRE_u7hAYpUg-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 134DA870831; Mon, 11 Dec 2023 15:57:39 +0000 (UTC) Received: from t14s.redhat.com (unknown [10.39.192.166]) by smtp.corp.redhat.com (Postfix) with ESMTP id 012041121306; Mon, 11 Dec 2023 15:57:36 +0000 (UTC) From: David Hildenbrand <david@redhat.com> To: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, David Hildenbrand <david@redhat.com>, Andrew Morton <akpm@linux-foundation.org>, "Matthew Wilcox (Oracle)" <willy@infradead.org>, Hugh Dickins <hughd@google.com>, Ryan Roberts <ryan.roberts@arm.com>, Yin Fengwei <fengwei.yin@intel.com>, Mike Kravetz <mike.kravetz@oracle.com>, Muchun Song <muchun.song@linux.dev>, Peter Xu <peterx@redhat.com> Subject: [PATCH v1 17/39] mm/migrate: page_add_anon_rmap() -> folio_add_anon_rmap_pte() Date: Mon, 11 Dec 2023 16:56:30 +0100 Message-ID: <20231211155652.131054-18-david@redhat.com> In-Reply-To: <20231211155652.131054-1-david@redhat.com> References: <20231211155652.131054-1-david@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.3 X-Rspamd-Queue-Id: 24CADA0006 X-Rspam-User: X-Stat-Signature: enkh4qupqx1brz8mwto51o1qqpq4j3nw X-Rspamd-Server: rspam03 X-HE-Tag: 1702310266-839492 X-HE-Meta: U2FsdGVkX1/tq7RsxQtcRPTn9x53xp7bqRFSjpY4ve36dwOHrKhh0QNKkzNeEPKPBgmJAUt9wdt7BzyS24mkl4zreJ6u+dinP0gkL5Zh0YDzpx18SRe32g8iQIRtDkvjXxwyyg6arB7g657vygFn8h4U431VXxJM4UQAw8NIBreuqaXG8+04f6g2VDpI3Csxl4ptVstyFNUZSn+H6G6DxxrglocsqepQXRZdMkavacUNjDq0g1Xb7pF2K8idF9nmFDijUjjNpkvBCK2qVmPDetyJfzqzg9AH+EOZqe4ql7Fsnmd3tcB9vJyjbcL8B9fTr4VSbPX/8jbTaLcawCya7iARNl9SIugtKzZEEyQyNwxP/EcYShGf1MmwrU0RpF400rXn4TAcpn9aH2kLonBzuh6kj5znN+qeGLQmrVQXcLGi+sIH6H4ltEzeAwktKsC1nxaS8+EZzuWfJmFAf0gjjqZbL0ITW+0cZ9JTAYDy7S499TyKlzSOAMGAASlLQp/kXShiz2zznNOsnWr+h05h4N2+o87omvSt2KoXuezdeB4psvzgXK2HFjkb2RAPkwlQbjW48LenGrL3tv1RX/krchsV8X1VB0OcrVmTFK+QL2I1Z/oYOgkVRtww5PBsDAon36Bfy8Iu79iuZYl4gC7wCR+wibgum9etfzfxt4bq9V+KWMGVtXsEBHjSm9G/e5Yq4gztCMov1t4rNrj3IJz8yzucPzhvzlDNXrbg8460p8/GMP6Z9zUuXX7ppYQyTxmAzO7PmG570vBOElMiTSJc9ujteTABxP24iHV7v0fEVrpsFFHuHNpUXVDSUkaKDgfQAG+jI3Hp3Umecre+BI4f8Sn2iKP+B1vJtxayQCQHSqVZvS2biwQsF+uzrjZSatyITI+dmX+b3pkv5CfTSmWcEH0qMTUg4VmBevQJJ4IKoSSfDLnCn2uL5c5dDaalhKGkaHGwdrBnQSsgqGbMAlw T5wlbTTN w5Mr+VFmld+SvzGX3Ol9CREmLhTHN9Ue8hstCCKTLqGrM6UXkwlYYYm3h69ywW0pmOfo2Mb9uj1OWN7Jejr5WJSsocGDoFAeBfd62ELKaNmvX4hMfT6ASzWQOOe6/iFOEG6jTS9TEmApDAqwTtnU8/NsPdHbBazyD4rrYm1aUhsziNL0n753AA5ztvrRwYA9xfAKSQ8DB5icDk3R0IWTvih734Q== 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: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
mm/rmap: interface overhaul
|
expand
|
diff --git a/mm/migrate.c b/mm/migrate.c index efc19f53b05e..0e78680589bc 100644 --- a/mm/migrate.c +++ b/mm/migrate.c @@ -259,8 +259,8 @@ static bool remove_migration_pte(struct folio *folio, #endif { if (folio_test_anon(folio)) - page_add_anon_rmap(new, vma, pvmw.address, - rmap_flags); + folio_add_anon_rmap_pte(folio, new, vma, + pvmw.address, rmap_flags); else folio_add_file_rmap_pte(folio, new, vma); set_pte_at(vma->vm_mm, pvmw.address, pvmw.pte, pte);
Let's convert remove_migration_pte(). Signed-off-by: David Hildenbrand <david@redhat.com> --- mm/migrate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)