Thread (140 messages) 140 messages, 10 authors, 12d ago

Re: [PATCH 19/30] mm: use linear_page_[index, delta]() consistently

From: Lorenzo Stoakes <ljs@kernel.org>
Date: 2026-07-10 15:01:57
Also in: damon, dri-devel, kvm, linux-arm-msm, linux-fsdevel, linux-iommu, linux-mm, linux-perf-users, linux-tegra, lkml, nvdimm

On Thu, Jul 09, 2026 at 11:57:09AM -0400, Gregory Price wrote:
On Thu, Jul 09, 2026 at 11:55:54AM -0400, Gregory Price wrote:
quoted
quoted
@@ -2462,7 +2463,7 @@ static int comedi_vm_access(struct vm_area_struct *vma, unsigned long addr,
 {
 	struct comedi_buf_map *bm = vma->vm_private_data;
 	unsigned long offset =
-	    addr - vma->vm_start + (vma->vm_pgoff << PAGE_SHIFT);
+	    addr - vma->vm_start + (vma_start_pgoff(vma) << PAGE_SHIFT);
Obviously correct, but was this intended for a different patch?

~Gregory
bleh already caught, sorry for the noise :]
Haha no thanks for picking it up, many eyes bugs etc. etc. ;)

Cheers, Lorenzo
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help