aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/read.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2011-07-12 13:42:02 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2011-07-15 09:12:20 -0400
commitd097971d8ab4042eaa4bff98698ae9cc55942327 (patch)
treecf8e4d1c7d7e93e7061b5adde0e589ab63345a76 /fs/nfs/read.c
parent50828d7e6767a92726708bc0666e2b8b84575808 (diff)
NFS: Use the nfs_pageio_descriptor->pg_bsize in the read/write request
Instead of looking up the rsize and wsize, the routines that generate the RPC requests should really be using the pg_bsize, since that is what we use when deciding whether or not to coalesce write requests... Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/read.c')
-rw-r--r--fs/nfs/read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/read.c b/fs/nfs/read.c
index c14362fbe65f..75088f58183b 100644
--- a/fs/nfs/read.c
+++ b/fs/nfs/read.c
@@ -303,7 +303,7 @@ static int nfs_pagein_multi(struct nfs_pageio_descriptor *desc, struct list_head
303 struct nfs_page *req = nfs_list_entry(desc->pg_list.next); 303 struct nfs_page *req = nfs_list_entry(desc->pg_list.next);
304 struct page *page = req->wb_page; 304 struct page *page = req->wb_page;
305 struct nfs_read_data *data; 305 struct nfs_read_data *data;
306 size_t rsize = NFS_SERVER(desc->pg_inode)->rsize, nbytes; 306 size_t rsize = desc->pg_bsize, nbytes;
307 unsigned int offset; 307 unsigned int offset;
308 int requests = 0; 308 int requests = 0;
309 int ret = 0; 309 int ret = 0;