Message ID | 20231204142146.91437-11-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 CC3CAC10DC1 for <linux-mm@archiver.kernel.org>; Mon, 4 Dec 2023 14:22:20 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 50BC26B013D; Mon, 4 Dec 2023 09:22:14 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 4BB8F6B013F; Mon, 4 Dec 2023 09:22:14 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3398D6B0140; Mon, 4 Dec 2023 09:22:14 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 1E7EC6B013D for <linux-mm@kvack.org>; Mon, 4 Dec 2023 09:22:14 -0500 (EST) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id E5784120253 for <linux-mm@kvack.org>; Mon, 4 Dec 2023 14:22:13 +0000 (UTC) X-FDA: 81529350546.17.5ADF0DF Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf13.hostedemail.com (Postfix) with ESMTP id 33FC920014 for <linux-mm@kvack.org>; Mon, 4 Dec 2023 14:22:11 +0000 (UTC) Authentication-Results: imf13.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=YzDKJ7vK; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf13.hostedemail.com: domain of david@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=david@redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1701699732; a=rsa-sha256; cv=none; b=weELUZCd0qmlJPCP//RDgxIlPGwA8CuLRSkuFhDpYb5oSYzh8bdF/4MOK5gE1wOyFmiybH 4/uBmskyqyqk3+ppiEYhwzz50aoAR4oIzgHmqZ1b9I1U4ikqgbuR2ETur+tBhRkMmEOSEL w5f5Yo6pw49vNCNBY+nZ/3fspVug7mE= ARC-Authentication-Results: i=1; imf13.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=YzDKJ7vK; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf13.hostedemail.com: domain of david@redhat.com designates 170.10.129.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=1701699732; 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=HFIwQ5rYAD0bMXQeuRR1LkqvEC8kZB0MG/s3u0E9e4Q=; b=xjbUMNtfkoIHsNtmCtxhXDGjo21BtZ/ibBay/dMIIMb6gSq3fmUQatgwxtV+gfwHeZYNgM M0UWp08lg3BXiWxZgYtlA/HNgBY4JR8XqEAg6mOhyXOpBxRkZE/y7odFSliO/3JUJ80ozh troEHJHh3Ec0u/b8++lu8Vbfh4Tjtks= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1701699731; 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=HFIwQ5rYAD0bMXQeuRR1LkqvEC8kZB0MG/s3u0E9e4Q=; b=YzDKJ7vKLDzqjPvT+1Jw2uC45tqKoyi2nQz+2g4ZBja1dOzoFT7tIfPvkDKqhMGwIG5iSo xQ/C83V3DH8pIO8P0dxOz8zKCpImw1Mcn1fcVlNCxRW2oJrZuoqokZw7d10srE3z2z4VK7 ddy+3Qy4xe41gk4DGi/t9xjlDJdzU1M= 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-253-KmX5I8pcNJiCMDlB3yQUQg-1; Mon, 04 Dec 2023 09:22:08 -0500 X-MC-Unique: KmX5I8pcNJiCMDlB3yQUQg-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 524F58F9207; Mon, 4 Dec 2023 14:22:07 +0000 (UTC) Received: from t14s.fritz.box (unknown [10.39.195.87]) by smtp.corp.redhat.com (Postfix) with ESMTP id AE2382026D4C; Mon, 4 Dec 2023 14:22:05 +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 RFC 10/39] mm/migrate: page_add_file_rmap() -> folio_add_file_rmap_pte() Date: Mon, 4 Dec 2023 15:21:17 +0100 Message-ID: <20231204142146.91437-11-david@redhat.com> In-Reply-To: <20231204142146.91437-1-david@redhat.com> References: <20231204142146.91437-1-david@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.4 X-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 33FC920014 X-Stat-Signature: 46sdoyuekdo7r3y74ogthk3cpcprs34w X-HE-Tag: 1701699731-336547 X-HE-Meta: U2FsdGVkX19xKGT7Ve0LWr7Ob9Y1H4QGs1NxtwMKTHnfyoMemHCItS+uXL5fsLWPKdYBDkMXBuKeIsW66ydzgxSiC1ftEbZeviuT5V0+Hc6ni4YnaT81MxLrjjitqS91gtZoImFVzie22RRa4UzL7Y9m24C8zLgLs+8pRcQxBQ3A0hMg/AXIlPOLvSKfaqSjXEvNvGUNj+xGVJa9QaKKXvcBib78OMkZgoTm777W/k6Bzy4gzXsq3nfSyJ58rMNpkBjzuJ4sFOGDjQQztl/pANdVHNYcjuj6Vqh1lampPfzp55tXrXPhZb9NC236NOXGgtYRLlUayR8TLdyX1fbcvs0IQeFsCfJ+j/bwnzU2YHX9cKIEKK5+pbmVaNPNRTtp4r7mlucKlmJxTdIL2sgu5QWKKMcnwpoRtERbvgoI4PC2CyaTiMiBZi+wG+C9zbKIL1fJBDLUAleXIBW6iZFPGmQQYiNAlVDl6PMUS2BYWqaShlD6mI90xjJWBx/94CgITrxHTczFN1KUygStKnMbsb50DTqax8+nf8NhAEJEkkME6a0jnYyVJj8GYGt0hgBAFms9tjHdFMjlobFWLjwrftyC6gafC7C9DtvM5FQaFTXf3AukqiDsvuI9QIdVcD729VgJts5+3s53NoChlpZDFrA9+8hTcVsIC0shJ0czfdv8EU0zSMQ44vkkAP0C2MWZB+CYTRS1pHMeWS7IOAJUP240vztZoqKLxgSo8bmbpxQgxoG/sVIqVLivt09sR7fFtHDThivuydtLD2wRyz0BRwwVJOTEtL5EybAAA1kQ/FIIaEeQjh1CPCPUpdB5ZtbqByHKJq2r48aeGWlHFxF1hlxH8C+IpKQAm+/wFF8gl5/kGlSF9PT7J1HvHB83e+t4+HIl+9f6JTRYjetKqjTfmRmipnG1kClVHc4BBOoISsM0p35jDy3GrGyZnIqAcuq9DoHclSro6h13g+0V3q0 7ayYY9uL 2Q2mQzXk3cTaw3X24pKNsFXGUxTWT/KxrmOR1B1m6hGmJmJ+3eiYMjs+YqcpgEIuUjKK8GUK1AMkzPdHy01jeEkd8NI6I78pjRd/MyyFb4Rhk1bMG7n8xO7GAm/j0ZVQMJRbleZMfMIfeD2I3DWcwGqi+kZ96dcH3Uf28wKkrLqbaMYCZpAoS6QEIa8WLl8I9R+i9hbvsF7GCxovBVrEXtVhNSjwLa2ZFVWkHSU+a4kHxwXTNh+hELS5l1Q== 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
|
On 12/4/2023 10:21 PM, David Hildenbrand wrote: > Let's convert remove_migration_pte(). > > Signed-off-by: David Hildenbrand <david@redhat.com> Reviewed-by: Yin Fengwei <fengwei.yin@intel.com> > --- > mm/migrate.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/mm/migrate.c b/mm/migrate.c > index de9d94b99ab78..efc19f53b05e6 100644 > --- a/mm/migrate.c > +++ b/mm/migrate.c > @@ -262,7 +262,7 @@ static bool remove_migration_pte(struct folio *folio, > page_add_anon_rmap(new, vma, pvmw.address, > rmap_flags); > else > - page_add_file_rmap(new, vma, false); > + folio_add_file_rmap_pte(folio, new, vma); > set_pte_at(vma->vm_mm, pvmw.address, pvmw.pte, pte); > } > if (vma->vm_flags & VM_LOCKED)
diff --git a/mm/migrate.c b/mm/migrate.c index de9d94b99ab78..efc19f53b05e6 100644 --- a/mm/migrate.c +++ b/mm/migrate.c @@ -262,7 +262,7 @@ static bool remove_migration_pte(struct folio *folio, page_add_anon_rmap(new, vma, pvmw.address, rmap_flags); else - page_add_file_rmap(new, vma, false); + folio_add_file_rmap_pte(folio, new, vma); set_pte_at(vma->vm_mm, pvmw.address, pvmw.pte, pte); } if (vma->vm_flags & VM_LOCKED)
Let's convert remove_migration_pte(). Signed-off-by: David Hildenbrand <david@redhat.com> --- mm/migrate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)