Whamcloud - gitweb
LU-8176 libcfs: Add file_dentry() & file_inode() wrapper
[fs/lustre-release.git] / lustre / ptlrpc / gss / gss_pipefs.c
index eec4c8d..d361e98 100644 (file)
@@ -828,7 +828,7 @@ ssize_t gss_pipe_upcall(struct file *filp, struct rpc_pipe_msg *msg,
 static
 ssize_t gss_pipe_downcall(struct file *filp, const char *src, size_t mlen)
 {
-       struct rpc_inode        *rpci = RPC_I(filp->f_path.dentry->d_inode);
+       struct rpc_inode        *rpci = RPC_I(file_inode(filp));
         struct gss_upcall_msg   *gss_msg;
         struct ptlrpc_cli_ctx   *ctx;
         struct gss_cli_ctx      *gctx = NULL;