Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 343ae531 authored by Anna Schumaker's avatar Anna Schumaker Committed by Trond Myklebust
Browse files

nfs: Fix unused variable error



inode is unused when CONFIG_SUNRPC_DEBUG=n.

Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
parent c6639dac
Loading
Loading
Loading
Loading
+2 −3
Original line number Original line Diff line number Diff line
@@ -552,7 +552,6 @@ static void nfs_pgio_prepare(struct rpc_task *task, void *calldata)
int nfs_initiate_pgio(struct rpc_clnt *clnt, struct nfs_pgio_header *hdr,
int nfs_initiate_pgio(struct rpc_clnt *clnt, struct nfs_pgio_header *hdr,
		      const struct rpc_call_ops *call_ops, int how, int flags)
		      const struct rpc_call_ops *call_ops, int how, int flags)
{
{
	struct inode *inode = hdr->inode;
	struct rpc_task *task;
	struct rpc_task *task;
	struct rpc_message msg = {
	struct rpc_message msg = {
		.rpc_argp = &hdr->args,
		.rpc_argp = &hdr->args,
@@ -575,8 +574,8 @@ int nfs_initiate_pgio(struct rpc_clnt *clnt, struct nfs_pgio_header *hdr,
	dprintk("NFS: %5u initiated pgio call "
	dprintk("NFS: %5u initiated pgio call "
		"(req %s/%llu, %u bytes @ offset %llu)\n",
		"(req %s/%llu, %u bytes @ offset %llu)\n",
		hdr->task.tk_pid,
		hdr->task.tk_pid,
		inode->i_sb->s_id,
		hdr->inode->i_sb->s_id,
		(unsigned long long)NFS_FILEID(inode),
		(unsigned long long)NFS_FILEID(hdr->inode),
		hdr->args.count,
		hdr->args.count,
		(unsigned long long)hdr->args.offset);
		(unsigned long long)hdr->args.offset);