TRACE_EVENT(nfs_aop_readahead,
TP_PROTO(
const struct inode *inode,
+ struct page *page,
unsigned int nr_pages
),
- TP_ARGS(inode, nr_pages),
+ TP_ARGS(inode, page, nr_pages),
TP_STRUCT__entry(
__field(dev_t, dev)
__field(u32, fhandle)
__field(u64, fileid)
__field(u64, version)
+ __field(loff_t, offset)
__field(unsigned int, nr_pages)
),
__entry->fileid = nfsi->fileid;
__entry->fhandle = nfs_fhandle_hash(&nfsi->fh);
__entry->version = inode_peek_iversion_raw(inode);
+ __entry->offset = page_index(page) << PAGE_SHIFT;
__entry->nr_pages = nr_pages;
),
TP_printk(
- "fileid=%02x:%02x:%llu fhandle=0x%08x version=%llu nr_pages=%u",
+ "fileid=%02x:%02x:%llu fhandle=0x%08x version=%llu offset=%lld nr_pages=%u",
MAJOR(__entry->dev), MINOR(__entry->dev),
(unsigned long long)__entry->fileid,
__entry->fhandle, __entry->version,
- __entry->nr_pages
+ __entry->offset, __entry->nr_pages
)
);
__field(int, ret)
__field(u64, fileid)
__field(u64, version)
+ __field(loff_t, offset)
__field(unsigned int, nr_pages)
),
struct inode *inode = mapping->host;
int ret;
- trace_nfs_aop_readahead(inode, nr_pages);
+ trace_nfs_aop_readahead(inode, lru_to_page(pages), nr_pages);
nfs_inc_stats(inode, NFSIOS_VFSREADPAGES);
ret = -ESTALE;