From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 1E48D3F0A85 for ; Mon, 27 Jul 2026 10:41:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785148862; cv=none; b=Qb2d1fShHqNC9IaiHEzGUGXgFp7SzksCwobzZw4QfPSrOiPfijpVrT0KAk6lWsetg73rWPUXZnTTvnxndIY1T2ijUP1S/jVfk+A0tIpnztV40kxdBWwLTNcOcT5DNqsg+gjlC7gnw1sq4NXqQimFSw4Pu535YEOf338bEgyHxQc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785148862; c=relaxed/simple; bh=wpu6PiH9YOFkLeS9cYD88hmac5mBd8m1MwoSKCkgNMk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=mI2N4KTQGR7o8a92kZg0snyZgYtMUC8KgL2ciqwDqSIUnqybxsM3fkEvvmP/n17I1Ko7r6Hbk3pqbgh6GcS7J4H0RGJzvm6fEmWcAVtmL12GJyPnp8Jg+c9bK6zsDE0m3eDB4lZc4J1KawEgfXQWQbBg13nAwPBT5o4ReXuMjAQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=mMrJaNc5; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="mMrJaNc5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E10AA1F000E9; Mon, 27 Jul 2026 10:40:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1785148860; bh=txiq8QrTyyhkb9nTEmIJGHpjEn/LEuQF6NB5SHAzZCs=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=mMrJaNc5obR+wc2RR3OcLKqm69rsLWDFK6bfA0eWocu7BrA8V/7xryW3Mc4B+qLDu 5JBLSV2+2ltsQce+tKwdl+ant0L9sGGiPib+5ZK5bFW4bcIA/6sWYWFZp1hBkRFyyn Y9pGVDPepGtxkMwGQQRqnNguuupyxZJv/5xclJ031Z8YPEXspUhGFjblfgbKZzz+or fctc+1T+pHFDbX5Pt6/jgJoa0HwPJQGn/fSDj3v7gSh7QNtENZPryBvvNBO3abVksi xwlOsDswgk/Ze+cwtvwpDpcKss8EjX/G9q5/4cnsfbME6ta+C79dw7q/qaNShFOGxT 7/U+IUnvrkDjg== Date: Mon, 27 Jul 2026 13:40:48 +0300 From: Mike Rapoport To: Brendan Jackman Cc: Borislav Petkov , Dave Hansen , Peter Zijlstra , Andrew Morton , David Hildenbrand , Vlastimil Babka , Wei Xu , Johannes Weiner , Zi Yan , Lorenzo Stoakes , linux-mm@kvack.org, linux-kernel@vger.kernel.org, x86@kernel.org, Sumit Garg , Will Deacon , rientjes@google.com, "Kalyazin, Nikita" , patrick.roy@linux.dev, "Itazuri, Takahiro" , Andy Lutomirski , David Kaplan , Thomas Gleixner , Yosry Ahmed , Patrick Bellasi , Reiji Watanabe , Sean Christopherson , Nikita Kalyazin , Ackerley Tng Subject: Re: [PATCH v3 02/26] mm/secretmem: make use of folio_{zap,restore}_direct_map Message-ID: References: <20260726-page_alloc-unmapped-v3-0-6f5729aa9832@google.com> <20260726-page_alloc-unmapped-v3-2-6f5729aa9832@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260726-page_alloc-unmapped-v3-2-6f5729aa9832@google.com> On Sun, Jul 26, 2026 at 10:22:35PM +0000, Brendan Jackman wrote: > From: Nikita Kalyazin > > Replace set_direct_map_*_noflush with newly available > folio_zap_direct_map calls that take folio's address internally. A side > effect is even if filemap_add_folio fails, the TLB is still flushed, > which is not expected to be on the hot path. > > Acked-by: David Hildenbrand (Arm) > Reviewed-by: Ackerley Tng > Signed-off-by: Nikita Kalyazin > Signed-off-by: Brendan Jackman Reviewed-by: Mike Rapoport (Microsoft) > --- > mm/secretmem.c | 8 ++------ > 1 file changed, 2 insertions(+), 6 deletions(-) -- Sincerely yours, Mike.