]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - include/linux/nfs_page.h
NFS: Add a helper to return a pointer to the open context of a struct nfs_page
[linux.git] / include / linux / nfs_page.h
index 8b36800d342d24f0fe526ea99773a4352fb3dcc2..1ea13e94feb769bf07c9e79cfb32e3570dfd08cf 100644 (file)
@@ -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 */