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

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

NFS: Remove nfs_direct_readpage_release()



Just remove the function and have the caller use nfs_release_request()
instead.

Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
parent 4cbb9768
Loading
Loading
Loading
Loading
+1 −11
Original line number Original line Diff line number Diff line
@@ -392,16 +392,6 @@ static void nfs_direct_complete(struct nfs_direct_req *dreq)
	nfs_direct_req_release(dreq);
	nfs_direct_req_release(dreq);
}
}


static void nfs_direct_readpage_release(struct nfs_page *req)
{
	dprintk("NFS: direct read done (%s/%llu %d@%lld)\n",
		req->wb_context->dentry->d_sb->s_id,
		(unsigned long long)NFS_FILEID(d_inode(req->wb_context->dentry)),
		req->wb_bytes,
		(long long)req_offset(req));
	nfs_release_request(req);
}

static void nfs_direct_read_completion(struct nfs_pgio_header *hdr)
static void nfs_direct_read_completion(struct nfs_pgio_header *hdr)
{
{
	unsigned long bytes = 0;
	unsigned long bytes = 0;
@@ -426,7 +416,7 @@ static void nfs_direct_read_completion(struct nfs_pgio_header *hdr)
			set_page_dirty(page);
			set_page_dirty(page);
		bytes += req->wb_bytes;
		bytes += req->wb_bytes;
		nfs_list_remove_request(req);
		nfs_list_remove_request(req);
		nfs_direct_readpage_release(req);
		nfs_release_request(req);
	}
	}
out_put:
out_put:
	if (put_dreq(dreq))
	if (put_dreq(dreq))