From patchwork Mon Dec 4 14:21:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Hildenbrand X-Patchwork-Id: 13478520 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 39F26C10DCE for ; Mon, 4 Dec 2023 14:22:40 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0550E6B024B; Mon, 4 Dec 2023 09:22:29 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 001AF6B024E; Mon, 4 Dec 2023 09:22:28 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D6EF26B024F; Mon, 4 Dec 2023 09:22:28 -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 C558D6B024B for ; Mon, 4 Dec 2023 09:22:28 -0500 (EST) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id A13E1A025B for ; Mon, 4 Dec 2023 14:22:28 +0000 (UTC) X-FDA: 81529351176.08.20BBF85 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 DC03B180022 for ; Mon, 4 Dec 2023 14:22:26 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=bCtGVC6Y; spf=pass (imf06.hostedemail.com: domain of david@redhat.com designates 170.10.133.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=1701699746; 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=vhcry2rMTXBwyY+r1UEd/G15BeM6OBHeZJqknbajPVE=; b=YddS+JXyDEDHpQEJSSdiykYcDPTHkyC+LXnYtdPzqknedguyAhePQnHtlmCRXv9wdKO5NK AsGOVMjrJ2FAs9iLwplZcBMf1nQQe9XUS2qMDBCiMnDMfvAj9BudBP/KcZ0DJoKQaSQOuU W5Tl13WCBSIqO1MFbEArZwdg+Ogjh1Q= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1701699746; a=rsa-sha256; cv=none; b=BRDDEYUG/ykEkaFkVG0YGvQNNg86OyzeTV0blUXnBvh7/3pCoDk1W1yJzcWXR/YANaQtR7 AxugfIY8IafQRGeA0Pc3IXrbEAlKg4CqTDI8Ls9VMgFIEU7Yjg8xDu8u3Tmx0yEynLv1QK iCLazEo7EneWJLqZohNGvm4jqICVbiY= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=bCtGVC6Y; spf=pass (imf06.hostedemail.com: domain of david@redhat.com designates 170.10.133.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=1701699746; 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=vhcry2rMTXBwyY+r1UEd/G15BeM6OBHeZJqknbajPVE=; b=bCtGVC6YX9mOreAnG8tJEPhgpyUIz4tCQNgBqZlpZWN00fa+FZLswUwIBMSJ1FvCZJcsa5 ML2sppEAD2b5FLexdfI2sLPruiO4vbqm2a8dTGeI9RwLPqNN0Xy3va7Gt0hHtDEB60esXN gQQXSJJYzHVmQqrGqKRq1DyQzhp7BRc= 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-688-ZWpJIdMyMpmAHNLnESmGHw-1; Mon, 04 Dec 2023 09:22:21 -0500 X-MC-Unique: ZWpJIdMyMpmAHNLnESmGHw-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (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 A76AF85A58B; Mon, 4 Dec 2023 14:22:20 +0000 (UTC) Received: from t14s.fritz.box (unknown [10.39.195.87]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0C38F2026D4C; Mon, 4 Dec 2023 14:22:18 +0000 (UTC) From: David Hildenbrand To: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, David Hildenbrand , Andrew Morton , "Matthew Wilcox (Oracle)" , Hugh Dickins , Ryan Roberts , Yin Fengwei , Mike Kravetz , Muchun Song , Peter Xu Subject: [PATCH RFC 17/39] mm/migrate: page_add_anon_rmap() -> folio_add_anon_rmap_pte() Date: Mon, 4 Dec 2023 15:21:24 +0100 Message-ID: <20231204142146.91437-18-david@redhat.com> In-Reply-To: <20231204142146.91437-1-david@redhat.com> References: <20231204142146.91437-1-david@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.4 X-Rspamd-Queue-Id: DC03B180022 X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: neetr5oii7uy8dsg36qutrybgrifse3f X-HE-Tag: 1701699746-664340 X-HE-Meta: U2FsdGVkX1+ATjEDwtQTx3B8JWoqGffVSxs1+KlVIyaZG9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urqRzyHDIXt6C8YVMTs4n6Suv8UBxbqqpdITHXrXos2PCOIf3Joo4e9AiBCg4RkMwTwQ/qT2fQ== 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: Let's convert remove_migration_pte(). Signed-off-by: David Hildenbrand --- mm/migrate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/migrate.c b/mm/migrate.c index efc19f53b05e6..0e78680589bcc 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);