Message ID | 20231220224504.646757-20-david@redhat.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-7543-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2483:b0:fb:cd0c:d3e with SMTP id q3csp55022dyi; Wed, 20 Dec 2023 14:49:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IH5+8fXiem/2k7qmhhW19eFK21sSgUc1tcjvSxLsnBHYgV04XcdEF23DqnPQ2eNOFLsyqo9 X-Received: by 2002:a05:622a:14d2:b0:427:7f35:1c23 with SMTP id u18-20020a05622a14d200b004277f351c23mr3660781qtx.61.1703112579156; Wed, 20 Dec 2023 14:49:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703112579; cv=none; d=google.com; s=arc-20160816; b=wl1ULmpe6o0098tGkBfJc72FTo20+q/5Z9UDV6sGP5FZvZYyCcHbAcV5UMF/oEtF4D 5NNPvCxbzuOVMvAA7X4196Vio7ztNhONd1EE779tAonujZtID5qyHnbDPshYZb5r7Xef EdDzLqt95wkiOVcnu0iQOKglzIWpayt4Ccy5Hrb1RQiyk41GfdfR99VAFQf1j46aKGF5 vwBXoNdsim7m8qjq/qk3S9uoOy/NBjUgxYuyqbYqfyaMTET3feD67p5WWj3VTTNnvtpH a3qjGT31AeUX8F+2Vn1GoOfVr+c/7WE0PjYl5ZY0ltuhHQExAtg7HO7NuCZVhTldih4N VuBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=QIY4woM6QT5vXKPOcZRD72sCPk41egGwN4b1+ampIqs=; fh=UlFXU+hKOMcm6idRzNfe3Pu+B5L1f7aeir3C6i/NWQA=; b=uvea2VT1kPoUzjDOoo7ZnIlKNsatercER9sIvrUHc4ifFvTNCYzWTXswOWEcH9YqnF kqdvOfJFYYulPpdoyO3amqQv8hXhwHHgL96eqZsKUsN3aQm9RVG1z98TuxVK79xz87Ae SjQylVa+Eobnw5fZUUsoGf9vClV9SfYoKYTvcAh1rhlsp3rfq4o79f8Si9F/d/uZ1qng TYXAs522ztcW2uTKuow1yQL/WdxLJ3YqB9YL9UOTSWbptE3lBFo7TCGaF1Ly5hRGeoqI NMgO2CgZiLqAKqyepGAkVzOyekpELjPCrhfsODTDpHhIwNMl6KAEGnbIwE9o3yJKIIsE 8r/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Q0ckCY9j; spf=pass (google.com: domain of linux-kernel+bounces-7543-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7543-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id b19-20020ac87fd3000000b00425540b1005si724801qtk.108.2023.12.20.14.49.39 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 14:49:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-7543-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Q0ckCY9j; spf=pass (google.com: domain of linux-kernel+bounces-7543-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7543-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id E65871C23275 for <ouuuleilei@gmail.com>; Wed, 20 Dec 2023 22:49:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D82DF4EB3E; Wed, 20 Dec 2023 22:46:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Q0ckCY9j" X-Original-To: linux-kernel@vger.kernel.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0D1D14E628 for <linux-kernel@vger.kernel.org>; Wed, 20 Dec 2023 22:46:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com 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=QIY4woM6QT5vXKPOcZRD72sCPk41egGwN4b1+ampIqs=; b=Q0ckCY9jH/Rw7+VX7RBUOtlEq4bCoqocbGxcMwPXhjjv39OBeEF+cOqCdx9wgKCQlkVQPX pTF/4faRgU2hBET32FyhVTazWhKyEHZ9nwHKTvSnsvHdP7cYZpSOTdB6j8qwxvkjPDyms4 7MfIrETk/HBiucaA+28LSSCwbfIho1U= 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-340-u30R_eRpM7yzGggrf7qJug-1; Wed, 20 Dec 2023 17:45:58 -0500 X-MC-Unique: u30R_eRpM7yzGggrf7qJug-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 708A1848C02; Wed, 20 Dec 2023 22:45:57 +0000 (UTC) Received: from t14s.fritz.box (unknown [10.39.192.101]) by smtp.corp.redhat.com (Postfix) with ESMTP id F2EAC40C6EB9; Wed, 20 Dec 2023 22:45:54 +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 19/40] mm/swapfile: page_add_anon_rmap() -> folio_add_anon_rmap_pte() Date: Wed, 20 Dec 2023 23:44:43 +0100 Message-ID: <20231220224504.646757-20-david@redhat.com> In-Reply-To: <20231220224504.646757-1-david@redhat.com> References: <20231220224504.646757-1-david@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.2 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785842975917465006 X-GMAIL-MSGID: 1785842975917465006 |
Series |
mm/rmap: interface overhaul
|
|
Commit Message
David Hildenbrand
Dec. 20, 2023, 10:44 p.m. UTC
Let's convert unuse_pte().
Signed-off-by: David Hildenbrand <david@redhat.com>
---
mm/swapfile.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/swapfile.c b/mm/swapfile.c index 2f877ca445137..3eec686484ef5 100644 --- a/mm/swapfile.c +++ b/mm/swapfile.c @@ -1806,7 +1806,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 */ folio_add_new_anon_rmap(folio, vma, addr); folio_add_lru_vma(folio, vma);