提交 c03025d5 编写于 作者: T Trond Myklebust

NFS: Add a helper to extract the nfs_open_context from a struct file

Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
上级 8fb559f8
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册