From: Trond Myklebust Date: Fri, 10 Aug 2007 21:44:28 +0000 (-0400) Subject: NFS: Add a helper to extract the nfs_open_context from a struct file X-Git-Tag: v2.6.24-rc1~1285^2~56 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c03025d55540bd648f2546659090140ecc835572;p=linux-2.6 NFS: Add a helper to extract the nfs_open_context from a struct file Signed-off-by: Trond Myklebust --- diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h index 1d1343fd2d..51e4a77030 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) {