diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2022-08-09 12:50:28 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2022-08-09 14:11:34 -0400 |
commit | af887e437bb298752b2edc5834048b8151b8aea0 (patch) | |
tree | dbc6cc335eaa8be7985469ff0208d3c8657068fb /include/linux | |
parent | 3c59366c207e4c6c6569524af606baf017a55c61 (diff) | |
download | linux-stable-af887e437bb298752b2edc5834048b8151b8aea0.tar.gz linux-stable-af887e437bb298752b2edc5834048b8151b8aea0.tar.bz2 linux-stable-af887e437bb298752b2edc5834048b8151b8aea0.zip |
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')
-rw-r--r-- | include/linux/nfs_page.h | 3 |
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; } |