@@ -201,10 +201,10 @@ static void filelayout_read_call_done(struct rpc_task *task, void *data)
struct nfs_read_data *rdata = (struct nfs_read_data *)data;
dprintk("--> %s task->tk_status %d\n", __func__, task->tk_status);
- if (rdata->orig_offset) {
+ if (rdata->mds_offset) {
dprintk("%s new off %llu orig offset %llu\n", __func__,
- rdata->args.offset, rdata->orig_offset);
- rdata->args.offset = rdata->orig_offset;
+ rdata->args.offset, rdata->mds_offset);
+ rdata->args.offset = rdata->mds_offset;
}
/* Note this may cause RPC to be resent */
@@ -256,7 +256,7 @@ filelayout_read_pagelist(struct nfs_read_data *data)
data->args.fh = fh;
data->args.offset = filelayout_get_dserver_offset(lseg, offset);
- data->orig_offset = offset;
+ data->mds_offset = offset;
/* Perform an asynchronous read to ds */
nfs_initiate_read(data, ds->ds_clp->cl_rpcclient,
@@ -1021,7 +1021,7 @@ struct nfs_read_data {
struct nfs_client *ds_clp; /* pNFS data server */
const struct rpc_call_ops *call_ops; /* For pNFS recovery to MDS */
int (*read_done_cb) (struct rpc_task *task, struct nfs_read_data *data);
- __u64 orig_offset; /* Filelayout dense stripe */
+ __u64 mds_offset;
struct page *page_array[NFS_PAGEVEC_SIZE];
};