[pnfs] [PATCH 1/1] rpc: Switch from nd->{dentry, mnt} to nd->path.{dentry, mnt}

Benny Halevy bhalevy at panasas.com
Wed Apr 30 13:05:27 EDT 2008


Applied to the spnfs branch.

Thanks!

Benny

On Apr. 29, 2008, 21:50 +0300, andros at netapp.com wrote:
> From: Andy Adamson <andros at netapp.com>
> 
> linux-2-6-25 fred-spnfs
> 
> Don't know how this slipped through the overall switch done in
> 4ac9137858e08a19f29feac4e1f4df7c268b0ba5
> 
> Signed-off-by: Andy Adamson<andros at netapp.com>
> ---
>  net/sunrpc/rpc_pipe.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c
> index f80b730..1d0f315 100644
> --- a/net/sunrpc/rpc_pipe.c
> +++ b/net/sunrpc/rpc_pipe.c
> @@ -822,7 +822,7 @@ rpc_mkpipe_compat(char *path, void *private, struct rpc_pipe_ops *ops,
>  	dentry = rpc_lookup_negative(path, &nd);
>  	if (IS_ERR(dentry))
>  		return dentry;
> -	dir = nd.dentry->d_inode;
> +	dir = nd.path.dentry->d_inode;
>  	inode = rpc_get_inode(dir->i_sb, S_IFSOCK | S_IRUSR | S_IWUSR);
>  	if (!inode)
>  		goto err_dput;



More information about the pNFS mailing list