diff options
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/direct.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/nfs/direct.c b/fs/nfs/direct.c index d38c3dc052a7..8f5d2dfd5a8a 100644 --- a/fs/nfs/direct.c +++ b/fs/nfs/direct.c | |||
@@ -161,7 +161,7 @@ static void nfs_direct_req_release(struct kref *kref) | |||
161 | * done. This prevents races with I/O completion so we will always wait | 161 | * done. This prevents races with I/O completion so we will always wait |
162 | * until all requests have been dispatched and completed. | 162 | * until all requests have been dispatched and completed. |
163 | */ | 163 | */ |
164 | static struct nfs_direct_req *nfs_direct_read_alloc(size_t nbytes, unsigned int rsize) | 164 | static struct nfs_direct_req *nfs_direct_read_alloc(size_t nbytes, size_t rsize) |
165 | { | 165 | { |
166 | struct list_head *list; | 166 | struct list_head *list; |
167 | struct nfs_direct_req *dreq; | 167 | struct nfs_direct_req *dreq; |
@@ -244,14 +244,14 @@ static void nfs_direct_read_schedule(struct nfs_direct_req *dreq, struct inode * | |||
244 | { | 244 | { |
245 | struct list_head *list = &dreq->list; | 245 | struct list_head *list = &dreq->list; |
246 | struct page **pages = dreq->pages; | 246 | struct page **pages = dreq->pages; |
247 | size_t rsize = NFS_SERVER(inode)->rsize; | ||
247 | unsigned int curpage, pgbase; | 248 | unsigned int curpage, pgbase; |
248 | unsigned int rsize = NFS_SERVER(inode)->rsize; | ||
249 | 249 | ||
250 | curpage = 0; | 250 | curpage = 0; |
251 | pgbase = user_addr & ~PAGE_MASK; | 251 | pgbase = user_addr & ~PAGE_MASK; |
252 | do { | 252 | do { |
253 | struct nfs_read_data *data; | 253 | struct nfs_read_data *data; |
254 | unsigned int bytes; | 254 | size_t bytes; |
255 | 255 | ||
256 | bytes = rsize; | 256 | bytes = rsize; |
257 | if (count < rsize) | 257 | if (count < rsize) |