Message ID | 20231220224504.646757-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 47337C3DA6E for <linux-mm@archiver.kernel.org>; Wed, 20 Dec 2023 22:46:03 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D23F28D0013; Wed, 20 Dec 2023 17:46:02 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id CD50B8D000D; Wed, 20 Dec 2023 17:46:02 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AD8E48D0013; Wed, 20 Dec 2023 17:46:02 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 991D98D000D for <linux-mm@kvack.org>; Wed, 20 Dec 2023 17:46:02 -0500 (EST) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 71BBD1403EF for <linux-mm@kvack.org>; Wed, 20 Dec 2023 22:46:02 +0000 (UTC) X-FDA: 81588680964.04.961BBF9 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf18.hostedemail.com (Postfix) with ESMTP id AD76B1C001C for <linux-mm@kvack.org>; Wed, 20 Dec 2023 22:46:00 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=AzJDo77E; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf18.hostedemail.com: domain of david@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=david@redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1703112360; 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=e4j1gZ8J9Me1FxgaIKP15u5MZyCwMx8COQ6zxxJs5nQ=; b=5YWtpiS5cI1HrZdPMLr0DqjKhcW5jSLVduZC0YN5lDd6UDf9n6h5xsGpd3/4ro/oPn3ZGs ml97K13A2GK0JGnBGxeZZd/m0fKVI2h0lO3yUO6rrPnZR2oRntyVZ8/4tsnIfARRcMOTU8 lbtcWdel1X4+neEvOqxPFQnWtQmyItY= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=AzJDo77E; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf18.hostedemail.com: domain of david@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=david@redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1703112360; a=rsa-sha256; cv=none; b=zTcfq3buHVp7YsOj7ng4gQ/MgrXRgNZKW55qVLmlZvC80gUO2Fe8f5c0Nsd/615DDcyV19 TYPFG6ZNaH54R6iUVP++P6qe6SXpjiMQOcKmhT+628C1UPmd8Kr2VAOy4YhTSsPHnlbTsP 55CPnPSUX5RdftBhmsPxLYozfzlodPc= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1703112360; 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=e4j1gZ8J9Me1FxgaIKP15u5MZyCwMx8COQ6zxxJs5nQ=; b=AzJDo77EYwblsAEEl0yfiQ8ZEaQ0gIwQhMK7eEQRsOLkl7XnPuIjcGkqIA/1AJ1CKCCpVP xF4cOZ97g67neHwbiIX2ktobn2w9hgugCqe6+6NtNlqdzy2Lx9fFeGFe78wNAFN8beFR8A +qCgdy0H0O6v4J/K7A0wrQiR3kwI/fc= 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-374-rwHNZvE3PyqDqMksZaYNkA-1; Wed, 20 Dec 2023 17:45:52 -0500 X-MC-Unique: rwHNZvE3PyqDqMksZaYNkA-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (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 3A84F848C03; Wed, 20 Dec 2023 22:45:52 +0000 (UTC) Received: from t14s.fritz.box (unknown [10.39.192.101]) by smtp.corp.redhat.com (Postfix) with ESMTP id 783D440C6EB9; Wed, 20 Dec 2023 22:45:50 +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 v2 17/40] mm/migrate: page_add_anon_rmap() -> folio_add_anon_rmap_pte() Date: Wed, 20 Dec 2023 23:44:41 +0100 Message-ID: <20231220224504.646757-18-david@redhat.com> In-Reply-To: <20231220224504.646757-1-david@redhat.com> References: <20231220224504.646757-1-david@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.2 X-R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E0qXs9r095N/Ns0l6vjA wHr+/hHi 3llLwAuEzherOCCy/S7ir+k6zE9hgd3jzIgj3Y0iDzjv+BHp6/L6phQfb125UQm01wfV+CCFbmKFu9oVExrvyZ5WohFle1gR56yEC/8eQrLYi04N7E+G1YaNthnlXLyBMptBU6Bb4od9BhFpAi/OQmLbIs96O1c4bw4v7ToNUnyhelUuEBwiwHLKUmR0oN3+KC9dfuUl8zy8KKjhupP5tfUrjiw== 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 65d64a119cabb..b37dd087da265 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(-)