projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8fb559f
)
NFS: Add a helper to extract the nfs_open_context from a struct file
author
Trond Myklebust
<Trond.Myklebust@netapp.com>
Fri, 10 Aug 2007 21:44:28 +0000
(17:44 -0400)
committer
Trond Myklebust
<Trond.Myklebust@netapp.com>
Tue, 9 Oct 2007 21:18:29 +0000
(17:18 -0400)
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
include/linux/nfs_fs.h
patch
|
blob
|
history
diff --git
a/include/linux/nfs_fs.h
b/include/linux/nfs_fs.h
index 1d1343fd2ddd2855c2ce0c034d1a927b79256bd1..51e4a77030f1463cb8ccafc36b7921d192877d0a 100644
(file)
--- 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;
extern const struct file_operations nfs_file_operations;
extern const struct address_space_operations nfs_file_aops;
+static inline struct nfs_open_context *nfs_file_open_context(struct file *filp)
+{
+ return filp->private_data;
+}
+
static inline struct rpc_cred *nfs_file_cred(struct file *file)
{
if (file != NULL) {