FIX: incorrect kvaddr_end in close

This commit is contained in:
Zhengyi Chen 2024-03-18 20:30:07 +00:00
parent 61ec001df6
commit 172197f638

View file

@ -76,7 +76,7 @@ static void my_shmem_vmops_close(struct vm_area_struct *vma)
/* Inside the window of mapped pages -- flush them up */ /* Inside the window of mapped pages -- flush them up */
struct page *pg = entry->page; struct page *pg = entry->page;
ulong kvaddr_bgn = (ulong) page_address(pg); ulong kvaddr_bgn = (ulong) page_address(pg);
ulong kvaddr_end = kvaddr_bgn + entry_pgs; ulong kvaddr_end = kvaddr_bgn + entry_pgs * PAGE_SIZE;
pr_info("[%s] Before flush: 0x%px has 0x%lx [+%ld]. Refcount: %d\n", pr_info("[%s] Before flush: 0x%px has 0x%lx [+%ld]. Refcount: %d\n",