Add a helper for when we remove the explicit pointer to the open context.
Showing the changes to include/linux (1 of 8 files). Show all
Unified · Split
| @@ -200,4 +200,10 @@ loff_t req_offset(struct nfs_page *req) · 199 unmodified lines | |||
| 200 | return (((loff_t)req->wb_index) << PAGE_SHIFT) + req->wb_offset; | 200 | return (((loff_t)req->wb_index) << PAGE_SHIFT) + req->wb_offset; |
| 201 | } | 201 | } |
| 202 | 202 | ||
| 203 | static inline struct nfs_open_context * | ||
| 204 | nfs_req_openctx(struct nfs_page *req) | ||
| 205 | { | ||
| 206 | return req->wb_context; | ||
| 207 | } | ||
| 208 | |||
| 203 | #endif /* _LINUX_NFS_PAGE_H */ | 209 | #endif /* _LINUX_NFS_PAGE_H */ |