Received: by 2002:a05:7412:8d06:b0:f9:332d:97f1 with SMTP id bj6csp25568rdb; Mon, 18 Dec 2023 08:02:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IFasEwWA9TTeulDOFctm6UqJs5qeNY9F60/Zbb2lUcNu6n7RS7UZLi/gl7ILq0WXcA8WJna X-Received: by 2002:aa7:c7c1:0:b0:54c:4837:9a98 with SMTP id o1-20020aa7c7c1000000b0054c48379a98mr9675930eds.63.1702915334206; Mon, 18 Dec 2023 08:02:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702915334; cv=none; d=google.com; s=arc-20160816; b=gUOtrgaadsiBCYw2Rp3A+WG5KIr1EgoYJJstbDJPrXjrBSeROOoW4xBPtsenTCU61m kRV/jRXTLQwxqjY9iNjLTxyPQCCNkCXk2zqASiqiWOB+U7Wti5SPFhMzw5iUY7Y1bR7i KX8WLrVr4LOLH6QcELyaHJ8bfziPQwEAx/4tA1bM7XscBWXW5JoJUvO2Ue0VCYpyR8hT ZgG72rzEBibdojwwpAzMaOSCY7VtAZtupYUi2J8azk5H50WpG7AL+FQEF6aajkjURcoQ YvabDjjaAf1e0Y/LgMmfYIplYJ0cigdW1Dhc1dQ5/ETkAiuV8IA8d9kVbN927flJGEec awEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=IzcCUNAohJNzInTQ2xsrZjXdFSalJM8++pt5uWYRauA=; fh=GlLzLBhqF07GE0FJUf82nnkBDPyXS9iIZ0BDzvPX32s=; b=WkhAKJ431FvUvBluevgMARn+ykSSbMN7I5QyZfhRwAnLFnoB7b57Ebl0EdFQVzbWaB GD60zlXAJjrPZ4OpPlbaaHQZ8x7otjgpiUCs5NCCGpOIkalMLhqeM6ShktnO+o2onYr3 bfkKfCJG+yfBJLVQL4bzVzbITK9F+4xUyvorOMHfyGk3veISMAc+gMlYrk+gYlRfZppl /jDG9CzPbvVTFBaMwCbv9ZlXtn3Z+qJTFRGyrOxIIoOIxfVtpx9DuJmqEkcK8N9uR86j ly9vKHv33nyhfLRb/hbQZivIVYoA7OnIPtkO4NxgOe/UBWyYlQCqh2i2VUsruZ2xQorV B84A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-4006-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4006-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id o26-20020a509b1a000000b005535f05575esi614063edi.12.2023.12.18.08.02.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 08:02:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-4006-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-4006-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4006-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 95A971F24FEB for ; Mon, 18 Dec 2023 16:00:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9F23B3D546; Mon, 18 Dec 2023 15:59:51 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 16F821EA71 for ; Mon, 18 Dec 2023 15:59:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E17D82F4; Mon, 18 Dec 2023 08:00:31 -0800 (PST) Received: from [10.57.75.230] (unknown [10.57.75.230]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id AE9893F5A1; Mon, 18 Dec 2023 07:59:45 -0800 (PST) Message-ID: Date: Mon, 18 Dec 2023 15:59:45 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 11/39] mm/userfaultfd: page_add_file_rmap() -> folio_add_file_rmap_pte() Content-Language: en-GB To: David Hildenbrand , linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, Andrew Morton , "Matthew Wilcox (Oracle)" , Hugh Dickins , Yin Fengwei , Mike Kravetz , Muchun Song , Peter Xu References: <20231211155652.131054-1-david@redhat.com> <20231211155652.131054-12-david@redhat.com> From: Ryan Roberts In-Reply-To: <20231211155652.131054-12-david@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 11/12/2023 15:56, David Hildenbrand wrote: > Let's convert mfill_atomic_install_pte(). > > Reviewed-by: Yin Fengwei > Signed-off-by: David Hildenbrand Reviewed-by: Ryan Roberts > --- > mm/userfaultfd.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/mm/userfaultfd.c b/mm/userfaultfd.c > index 9ec814e47e99..330a481a1654 100644 > --- a/mm/userfaultfd.c > +++ b/mm/userfaultfd.c > @@ -114,7 +114,7 @@ int mfill_atomic_install_pte(pmd_t *dst_pmd, > /* Usually, cache pages are already added to LRU */ > if (newly_allocated) > folio_add_lru(folio); > - page_add_file_rmap(page, dst_vma, false); > + folio_add_file_rmap_pte(folio, page, dst_vma); > } else { > page_add_new_anon_rmap(page, dst_vma, dst_addr); > folio_add_lru_vma(folio, dst_vma);