diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-08-10 17:44:28 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-10-09 17:18:29 -0400 |
commit | c03025d55540bd648f2546659090140ecc835572 (patch) | |
tree | 14038137eaa080f1118777207e4c2a1359e44b94 /include/linux/nfs_fs.h | |
parent | 8fb559f87fee7f71dbf9a595095ad7d8e84c55e7 (diff) |
NFS: Add a helper to extract the nfs_open_context from a struct file
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux/nfs_fs.h')
-rw-r--r-- | include/linux/nfs_fs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h index 1d1343fd2ddd..51e4a77030f1 100644 --- a/include/linux/nfs_fs.h +++ b/include/linux/nfs_fs.h | |||
@@ -331,6 +331,11 @@ extern const struct inode_operations nfs3_file_inode_operations; | |||
331 | extern const struct file_operations nfs_file_operations; | 331 | extern const struct file_operations nfs_file_operations; |
332 | extern const struct address_space_operations nfs_file_aops; | 332 | extern const struct address_space_operations nfs_file_aops; |
333 | 333 | ||
334 | static inline struct nfs_open_context *nfs_file_open_context(struct file *filp) | ||
335 | { | ||
336 | return filp->private_data; | ||
337 | } | ||
338 | |||
334 | static inline struct rpc_cred *nfs_file_cred(struct file *file) | 339 | static inline struct rpc_cred *nfs_file_cred(struct file *file) |
335 | { | 340 | { |
336 | if (file != NULL) { | 341 | if (file != NULL) { |