@@ -112,14 +112,14 @@ static void filelayout_read_call_done(struct rpc_task *task, void *data)
}
/* Note this may cause RPC to be resent */
- rdata->pdata.call_ops->rpc_call_done(task, data);
+ rdata->call_ops->rpc_call_done(task, data);
}
static void filelayout_read_release(void *data)
{
struct nfs_read_data *rdata = (struct nfs_read_data *)data;
- rdata->pdata.call_ops->rpc_release(data);
+ rdata->call_ops->rpc_release(data);
}
struct rpc_call_ops filelayout_read_call_ops = {
@@ -902,7 +902,7 @@ pnfs_try_to_read_data(struct nfs_read_data *rdata,
struct nfs_server *nfss = NFS_SERVER(inode);
enum pnfs_try_status trypnfs;
- rdata->pdata.call_ops = call_ops;
+ rdata->call_ops = call_ops;
dprintk("%s: Reading ino:%lu %u@%llu\n",
__func__, inode->i_ino, rdata->args.count, rdata->args.offset);
@@ -1004,16 +1004,6 @@ struct nfs_page;
#define NFS_PAGEVEC_SIZE (8U)
-#if defined(CONFIG_NFS_V4_1)
-
-/* pnfs-specific data needed for read, write, and commit calls */
-struct pnfs_call_data {
- const struct rpc_call_ops *call_ops;
- u32 orig_count; /* for retry via MDS */
- u8 how; /* for FLUSH_STABLE */
-};
-#endif /* CONFIG_NFS_V4_1 */
-
struct nfs_read_data {
int flags;
struct rpc_task task;
@@ -1032,7 +1022,7 @@ struct nfs_read_data {
unsigned long timestamp; /* For lease renewal */
#endif
#if defined(CONFIG_NFS_V4_1)
- struct pnfs_call_data pdata;
+ const struct rpc_call_ops *call_ops;
__u64 orig_offset; /* For filelayout dense stripe */
#endif /* CONFIG_NFS_V4_1 */
struct page *page_array[NFS_PAGEVEC_SIZE];