diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2011-07-12 17:42:02 (GMT) |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2011-07-15 13:12:20 (GMT) |
commit | d097971d8ab4042eaa4bff98698ae9cc55942327 (patch) | |
tree | cf8e4d1c7d7e93e7061b5adde0e589ab63345a76 /fs/nfs/write.c | |
parent | 50828d7e6767a92726708bc0666e2b8b84575808 (diff) | |
download | linux-fsl-qoriq-d097971d8ab4042eaa4bff98698ae9cc55942327.tar.xz |
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/write.c')
-rw-r--r-- | fs/nfs/write.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c index 71fbba7..c88a1ab 100644 --- a/fs/nfs/write.c +++ b/fs/nfs/write.c @@ -946,7 +946,7 @@ static int nfs_flush_multi(struct nfs_pageio_descriptor *desc, struct list_head struct nfs_page *req = nfs_list_entry(desc->pg_list.next); struct page *page = req->wb_page; struct nfs_write_data *data; - size_t wsize = NFS_SERVER(desc->pg_inode)->wsize, nbytes; + size_t wsize = desc->pg_bsize, nbytes; unsigned int offset; int requests = 0; int ret = 0; |