History

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.

Trond Myklebust committed 7 years ago

Commit 9fcd5961 parent 15494518 files · +31 −23Browse files

Showing the changes to include/linux (1 of 8 files). Show all

Unified · Split

include/linux/nfs_page.h+6−0
@@ -200,4 +200,10 @@ loff_t req_offset(struct nfs_page *req) · 199 unmodified lines
200200 return (((loff_t)req->wb_index) << PAGE_SHIFT) + req->wb_offset;
201201 }
202202
203+static inline struct nfs_open_context *
204+nfs_req_openctx(struct nfs_page *req)
205+{
206+ return req->wb_context;
207+}
208+
203209 #endif /* _LINUX_NFS_PAGE_H */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t