Skip to content

Commit d097971

Browse files
Trond MyklebustTrond Myklebust
authored andcommitted
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>
1 parent 50828d7 commit d097971

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎fs/nfs/read.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ static int nfs_pagein_multi(struct nfs_pageio_descriptor *desc, struct list_head
303303
struct nfs_page *req = nfs_list_entry(desc->pg_list.next);
304304
struct page *page = req->wb_page;
305305
struct nfs_read_data *data;
306-
size_t rsize = NFS_SERVER(desc->pg_inode)->rsize, nbytes;
306+
size_t rsize = desc->pg_bsize, nbytes;
307307
unsigned int offset;
308308
int requests = 0;
309309
int ret = 0;

‎fs/nfs/write.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,7 @@ static int nfs_flush_multi(struct nfs_pageio_descriptor *desc, struct list_head
946946
struct nfs_page *req = nfs_list_entry(desc->pg_list.next);
947947
struct page *page = req->wb_page;
948948
struct nfs_write_data *data;
949-
size_t wsize = NFS_SERVER(desc->pg_inode)->wsize, nbytes;
949+
size_t wsize = desc->pg_bsize, nbytes;
950950
unsigned int offset;
951951
int requests = 0;
952952
int ret = 0;

0 commit comments

Comments
 (0)