* [PATCH] dax: pgoff in fs DAX trace needs to be corrected
@ 2017-01-24 0:06 Dave Jiang
2017-01-24 18:33 ` Ross Zwisler
0 siblings, 1 reply; 2+ messages in thread
From: Dave Jiang @ 2017-01-24 0:06 UTC (permalink / raw)
To: dan.j.williams; +Cc: linux-nvdimm
With only vmf being passed in, the pgoff in vmf that is passed in is for
the PTE and not the PMD. Fix up so the pgoff is corrected.
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
---
include/trace/events/fs_dax.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/trace/events/fs_dax.h b/include/trace/events/fs_dax.h
index c566ddc..e26affa 100644
--- a/include/trace/events/fs_dax.h
+++ b/include/trace/events/fs_dax.h
@@ -30,7 +30,8 @@ DECLARE_EVENT_CLASS(dax_pmd_fault_class,
__entry->vm_flags = vmf->vma->vm_flags;
__entry->address = vmf->address;
__entry->flags = vmf->flags;
- __entry->pgoff = vmf->pgoff;
+ __entry->pgoff = linear_page_index(vmf->vma,
+ vmf->address & PMD_MASK);
__entry->max_pgoff = max_pgoff;
__entry->result = result;
),
_______________________________________________
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-01-24 18:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-24 0:06 [PATCH] dax: pgoff in fs DAX trace needs to be corrected Dave Jiang
2017-01-24 18:33 ` Ross Zwisler
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.