From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (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 453B018A6AB; Tue, 22 Apr 2025 04:27:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.95.11.211 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745296056; cv=none; b=NkSp2DNtkljacUuEQ5F/9CqLtLoG3o1I+5ifzwIjzL3R5mRYyNICSfMsscG0eaAo7nAC9yh7S8vUDzzs45+Q8fXCq7/LiOD8zYgV6GF3rbLQgr0Ss9/o0A6lTg9u4Wbi73M7jRSKTrj0VNa2iWMXlQPIEIw4dMRXNYPBTVboPHI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745296056; c=relaxed/simple; bh=PLSm/GNxIQKdFcbfEfmuNrKOANZViQEJeLI7/wm2bbM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=odAZ6vvnoaqMVfJf2pP7VmfXat5tb9WCdjMFCM41gn1pQlIhClAQ8ib4CD3iadnheXobs1QHa2YlqEuxfG++4jTwnyfA95qvNyhqm7td28gSeMdamcbCj0nsjrpU7IVDdKNotvcsppPOwWqKyf5lq8kZEFv+P0DbFsFgsQwWJ1c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.client-ip=213.95.11.211 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id 17A2568C4E; Tue, 22 Apr 2025 06:27:28 +0200 (CEST) Date: Tue, 22 Apr 2025 06:27:27 +0200 From: Christoph Hellwig To: Leon Romanovsky Cc: Marek Szyprowski , Jens Axboe , Christoph Hellwig , Keith Busch , Jake Edge , Jonathan Corbet , Jason Gunthorpe , Zhu Yanjun , Robin Murphy , Joerg Roedel , Will Deacon , Sagi Grimberg , Bjorn Helgaas , Logan Gunthorpe , Yishai Hadas , Shameer Kolothum , Kevin Tian , Alex Williamson , =?iso-8859-1?B?Suly9G1l?= Glisse , Andrew Morton , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, linux-rdma@vger.kernel.org, iommu@lists.linux.dev, linux-nvme@lists.infradead.org, linux-pci@vger.kernel.org, kvm@vger.kernel.org, linux-mm@kvack.org, Niklas Schnelle , Chuck Lever , Luis Chamberlain , Matthew Wilcox , Dan Williams , Kanchan Joshi , Chaitanya Kulkarni , Leon Romanovsky Subject: Re: [PATCH v8 20/24] blk-mq: add scatterlist-less DMA mapping helpers Message-ID: <20250422042727.GC27723@lst.de> References: <87b151a3791d71e58ec6f1b42bcf5fe06304cf80.1744825142.git.leon@kernel.org> Precedence: bulk X-Mailing-List: linux-doc@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: <87b151a3791d71e58ec6f1b42bcf5fe06304cf80.1744825142.git.leon@kernel.org> User-Agent: Mutt/1.5.17 (2007-11-01) On Fri, Apr 18, 2025 at 09:47:50AM +0300, Leon Romanovsky wrote: > +#define blk_phys_to_page(_paddr) \ > + (pfn_to_page(__phys_to_pfn(_paddr))) The code can use phys_to_page now that that is provided kernel-wide instead this temporary helper.