diff options
author | Trond Myklebust | 2019-04-07 13:59:11 -0400 |
---|---|---|
committer | Anna Schumaker | 2019-04-25 14:18:15 -0400 |
commit | 9fcd5960e88bbdc74a70d9e3a5ab46b489fc4b80 (patch) | |
tree | 6f2b82626a3a59c4af52a6b3e30b81501dfc32ec /include/linux/nfs_page.h | |
parent | 154945112dac10b7109d816275f3e4896b0b064e (diff) |
NFS: Add a helper to return a pointer to the open context of a struct nfs_page
Add a helper for when we remove the explicit pointer to the open
context.
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'include/linux/nfs_page.h')
-rw-r--r-- | include/linux/nfs_page.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/nfs_page.h b/include/linux/nfs_page.h index 8b36800d342d..1ea13e94feb7 100644 --- a/include/linux/nfs_page.h +++ b/include/linux/nfs_page.h @@ -200,4 +200,10 @@ loff_t req_offset(struct nfs_page *req) return (((loff_t)req->wb_index) << PAGE_SHIFT) + req->wb_offset; } +static inline struct nfs_open_context * +nfs_req_openctx(struct nfs_page *req) +{ + return req->wb_context; +} + #endif /* _LINUX_NFS_PAGE_H */ |