summaryrefslogtreecommitdiff
path: root/include/linux/nfs_page.h
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@hammerspace.com>2022-08-09 19:50:28 +0300
committerTrond Myklebust <trond.myklebust@hammerspace.com>2022-08-09 21:11:34 +0300
commitaf887e437bb298752b2edc5834048b8151b8aea0 (patch)
treedbc6cc335eaa8be7985469ff0208d3c8657068fb /include/linux/nfs_page.h
parent3c59366c207e4c6c6569524af606baf017a55c61 (diff)
downloadlinux-af887e437bb298752b2edc5834048b8151b8aea0.tar.xz
NFS: Improve write error tracing
Don't leak request pointers, but use the "device:inode" labelling that is used by all the other trace points. Furthermore, replace use of page indexes with an offset, again in order to align behaviour with other NFS trace points. Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'include/linux/nfs_page.h')
-rw-r--r--include/linux/nfs_page.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/nfs_page.h b/include/linux/nfs_page.h
index f0373a6cb5fb..ba7e2e4b0926 100644
--- a/include/linux/nfs_page.h
+++ b/include/linux/nfs_page.h
@@ -202,8 +202,7 @@ nfs_list_entry(struct list_head *head)
return list_entry(head, struct nfs_page, wb_list);
}
-static inline
-loff_t req_offset(struct nfs_page *req)
+static inline loff_t req_offset(const struct nfs_page *req)
{
return (((loff_t)req->wb_index) << PAGE_SHIFT) + req->wb_offset;
}