From: Andy Adamson <andros@xxxxxxxxxx> Signed-off-by: Andy Adamson <andros@xxxxxxxxxx> --- fs/nfs/nfs4filelayout.c | 13 ++++--------- 1 files changed, 4 insertions(+), 9 deletions(-) diff --git a/fs/nfs/nfs4filelayout.c b/fs/nfs/nfs4filelayout.c index d60fa1f..45b0dcc 100644 --- a/fs/nfs/nfs4filelayout.c +++ b/fs/nfs/nfs4filelayout.c @@ -199,22 +199,17 @@ struct rpc_call_ops filelayout_write_call_ops = { * TODO: join with write_pagelist? */ static enum pnfs_try_status -filelayout_read_pagelist(struct pnfs_layout_type *layoutid, - struct page **pages, - unsigned int pgbase, - unsigned nr_pages, - loff_t offset, - size_t count, - struct nfs_read_data *data) +filelayout_read_pagelist(struct nfs_read_data *data, unsigned nr_pages) { - struct inode *inode = PNFS_INODE(layoutid); struct pnfs_layout_segment *lseg = data->pdata.lseg; struct nfs4_pnfs_ds *ds; + loff_t offset = data->args.offset; u32 idx; struct nfs_fh *fh; dprintk("--> %s ino %lu nr_pages %d pgbase %u req %Zu@%llu\n", - __func__, inode->i_ino, nr_pages, pgbase, count, offset); + __func__, data->inode->i_ino, nr_pages, + data->args.pgbase, (size_t)data->args.count, offset); /* Retrieve the correct rpc_client for the byte range */ idx = nfs4_fl_calc_ds_index(lseg, offset); -- 1.6.6 -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html