From 4964ad7df1789af5e7eb85d274b08195835f4056 Mon Sep 17 00:00:00 2001 From: Trond Myklebust Date: Fri, 10 Aug 2007 17:44:28 -0400 Subject: [PATCH] --- yaml --- r: 69246 b: refs/heads/master c: c03025d55540bd648f2546659090140ecc835572 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/include/linux/nfs_fs.h | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index f493f93fcc82..0c25565d5524 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 8fb559f87fee7f71dbf9a595095ad7d8e84c55e7 +refs/heads/master: c03025d55540bd648f2546659090140ecc835572 diff --git a/trunk/include/linux/nfs_fs.h b/trunk/include/linux/nfs_fs.h index 1d1343fd2ddd..51e4a77030f1 100644 --- a/trunk/include/linux/nfs_fs.h +++ b/trunk/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) {