Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=c03025d55540bd648f2546659090140ecc835572
Commit:     c03025d55540bd648f2546659090140ecc835572
Parent:     8fb559f87fee7f71dbf9a595095ad7d8e84c55e7
Author:     Trond Myklebust <[EMAIL PROTECTED]>
AuthorDate: Fri Aug 10 17:44:28 2007 -0400
Committer:  Trond Myklebust <[EMAIL PROTECTED]>
CommitDate: Tue Oct 9 17:18:29 2007 -0400

    NFS: Add a helper to extract the nfs_open_context from a struct file
    
    Signed-off-by: Trond Myklebust <[EMAIL PROTECTED]>
---
 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 1d1343f..51e4a77 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;
 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) {
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to