summaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4proc.c
diff options
context:
space:
mode:
authorAndy Adamson <andros@netapp.com>2012-04-27 17:53:47 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-05-19 17:54:59 -0400
commita033a09189c0125d56f2ac17ffb4bec5a3d3323b (patch)
treea224455528e9dc35da8649ad9c88c2b8ffa4a280 /fs/nfs/nfs4proc.c
parente7dd79af01e7ca932c5168a708e77750659f7a9e (diff)
downloadlinux-stable-a033a09189c0125d56f2ac17ffb4bec5a3d3323b.tar.gz
linux-stable-a033a09189c0125d56f2ac17ffb4bec5a3d3323b.tar.bz2
linux-stable-a033a09189c0125d56f2ac17ffb4bec5a3d3323b.zip
NFSv4.1 remove nfs4_reset_write and nfs4_reset_read
Replaced by filelayout_reset_write and filelayout_reset_read Signed-off-by: Andy Adamson <andros@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4proc.c')
-rw-r--r--fs/nfs/nfs4proc.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index e6ab15f108b1..49eecd5d3a2d 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -3369,23 +3369,6 @@ static void nfs4_proc_read_rpc_prepare(struct rpc_task *task, struct nfs_read_da
rpc_call_start(task);
}
-/* Reset the the nfs_read_data to send the read to the MDS. */
-void nfs4_reset_read(struct rpc_task *task, struct nfs_read_data *data)
-{
- struct nfs_pgio_header *hdr = data->header;
- struct inode *inode = hdr->inode;
-
- dprintk("%s Reset task for i/o through\n", __func__);
- data->ds_clp = NULL;
- /* offsets will differ in the dense stripe case */
- data->args.offset = data->mds_offset;
- data->args.fh = NFS_FH(inode);
- data->read_done_cb = nfs4_read_done_cb;
- task->tk_ops = hdr->mds_ops;
- rpc_task_reset_client(task, NFS_CLIENT(inode));
-}
-EXPORT_SYMBOL_GPL(nfs4_reset_read);
-
static int nfs4_write_done_cb(struct rpc_task *task, struct nfs_write_data *data)
{
struct inode *inode = data->header->inode;
@@ -3409,24 +3392,6 @@ static int nfs4_write_done(struct rpc_task *task, struct nfs_write_data *data)
nfs4_write_done_cb(task, data);
}
-/* Reset the the nfs_write_data to send the write to the MDS. */
-void nfs4_reset_write(struct rpc_task *task, struct nfs_write_data *data)
-{
- struct nfs_pgio_header *hdr = data->header;
- struct inode *inode = hdr->inode;
-
- dprintk("%s Reset task for i/o through\n", __func__);
- data->ds_clp = NULL;
- data->write_done_cb = nfs4_write_done_cb;
- data->args.fh = NFS_FH(inode);
- data->args.bitmask = data->res.server->cache_consistency_bitmask;
- data->args.offset = data->mds_offset;
- data->res.fattr = &data->fattr;
- task->tk_ops = hdr->mds_ops;
- rpc_task_reset_client(task, NFS_CLIENT(inode));
-}
-EXPORT_SYMBOL_GPL(nfs4_reset_write);
-
static
bool nfs4_write_need_cache_consistency_data(const struct nfs_write_data *data)
{