Thread (1 message) 1 message, 1 author, 2021-11-24

Re: [PATCH 14/29] fsdax: simplify the pgoff calculation

flat view

From: Christoph Hellwig <hch@lst.de>
Date: 2021-11-24 06:39:40
Also in: dm-devel, linux-ext4, linux-fsdevel, linux-s390, linux-xfs, nvdimm

On Tue, Nov 23, 2021 at 02:36:42PM -0800, Darrick J. Wong wrote:
quoted
-	phys_addr_t phys_off = (start_sect + sector) * 512;
-
-	if (pgoff)
-		*pgoff = PHYS_PFN(phys_off);
-	if (phys_off % PAGE_SIZE || size % PAGE_SIZE)
AFAICT, we're relying on fs_dax_get_by_bdev to have validated this
previously, which is why the error return stuff goes away?
Exactly.
_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help