Message ID | 20231204142146.91437-20-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 D27E8C46CA0 for <linux-mm@archiver.kernel.org>; Mon, 4 Dec 2023 14:22:46 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0EE876B029A; Mon, 4 Dec 2023 09:22:34 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 083BB6B0298; Mon, 4 Dec 2023 09:22:33 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E5A6A6B029F; Mon, 4 Dec 2023 09:22:33 -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 CC4366B0298 for <linux-mm@kvack.org>; Mon, 4 Dec 2023 09:22:33 -0500 (EST) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id A1A881A022D for <linux-mm@kvack.org>; Mon, 4 Dec 2023 14:22:33 +0000 (UTC) X-FDA: 81529351386.08.FDB73DD Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf22.hostedemail.com (Postfix) with ESMTP id CEBD2C0011 for <linux-mm@kvack.org>; Mon, 4 Dec 2023 14:22:31 +0000 (UTC) Authentication-Results: imf22.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=KAYptAo9; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf22.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=1701699751; 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=+HQj3RQXy3rfd5XJOTyn9grirPLdYd+avDtLGVmo9F4=; b=A809ywu+1ZSS6xc3I+rcuA0aK1w/MGL9cA1YQJf0Ewl3W0GVLnrbyAIvzRqw9RytQonSkj O053Dpubqu+m6CDb48BGyjA86VXgfN/X/cVTl3S9FgskeOiCtVMsV2ngYuSSIG+1SKBxRB vZFUQoSiMfmg5xrSoGyQEMTxBBS+bdA= ARC-Authentication-Results: i=1; imf22.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=KAYptAo9; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf22.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=1701699751; a=rsa-sha256; cv=none; b=2u30HJSQxMs6Oi913HXcOfy72Qcdx/BhhaKCjOxCxin9P6HmADLueVpU+Gbq8zaVW02PjH JkcSQSvehdIEua3pCu58ruoTJYRNwYLoE5XoIhuVpGQ+E1ozlPeYhqd6/t5XsKMfI3RmVN DHHEcM3cAa3HrPQ+3m7VCaZb5fBS/0Q= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1701699751; 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=+HQj3RQXy3rfd5XJOTyn9grirPLdYd+avDtLGVmo9F4=; b=KAYptAo9eGkLtLQyRbB+7gBcmIFGYohKx5wwoOK+2uiJsuD1mXkUjRhM/R95Tr+wbNb/TV Psoae6fHfqVtf/94YXmVweaIWWYJurdgNwadeuE8vLenYxOsHcI/Zxosalk0J+qpEXrIC0 r9xyUXpTJEUB7ZCSy3nnmieBo4+ED2o= 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-695-AG-JYXFCP3KppGdqheHrmQ-1; Mon, 04 Dec 2023 09:22:24 -0500 X-MC-Unique: AG-JYXFCP3KppGdqheHrmQ-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 6C7CF831506; Mon, 4 Dec 2023 14:22:24 +0000 (UTC) Received: from t14s.fritz.box (unknown [10.39.195.87]) by smtp.corp.redhat.com (Postfix) with ESMTP id C88092026D68; Mon, 4 Dec 2023 14:22:22 +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 19/39] mm/swapfile: page_add_anon_rmap() -> folio_add_anon_rmap_pte() Date: Mon, 4 Dec 2023 15:21:26 +0100 Message-ID: <20231204142146.91437-20-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-Rspamd-Queue-Id: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Mq/+xbwzQ0fE/e6AM/ 2b2kaSfl BWofqOqpLnuYUuTFxAAPsMt3LK5FwayACAmmgbf4mHJ/IgruSnXTDSIHZMVbIqNPxukuYGc50w4Bpfz40yS6+WowQi0AbVFDje1g3kt8IaVntu0Hm7fqPbNFhXWFEaTqoOzZ+wkkuPHUW0i1+nypp5oxgP4DmWepc/vY36yx1E7ekeqbD0/yUPTm1ktC0u9XLhs1YjDMLq5Acj63dd3ZaHhXt4Q== 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/swapfile.c b/mm/swapfile.c index 4bc70f4591641..1ded3c150df95 100644 --- a/mm/swapfile.c +++ b/mm/swapfile.c @@ -1805,7 +1805,7 @@ static int unuse_pte(struct vm_area_struct *vma, pmd_t *pmd, if (pte_swp_exclusive(old_pte)) rmap_flags |= RMAP_EXCLUSIVE; - page_add_anon_rmap(page, vma, addr, rmap_flags); + folio_add_anon_rmap_pte(folio, page, vma, addr, rmap_flags); } else { /* ksm created a completely new copy */ page_add_new_anon_rmap(page, vma, addr); lru_cache_add_inactive_or_unevictable(page, vma);
Let's convert unuse_pte(). Signed-off-by: David Hildenbrand <david@redhat.com> --- mm/swapfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)