|
@@ -508,7 +508,7 @@ size_t nfs_generic_pg_test(struct nfs_pageio_descriptor *desc,
|
|
* for it without upsetting the slab allocator.
|
|
* for it without upsetting the slab allocator.
|
|
*/
|
|
*/
|
|
if (((mirror->pg_count + req->wb_bytes) >> PAGE_SHIFT) *
|
|
if (((mirror->pg_count + req->wb_bytes) >> PAGE_SHIFT) *
|
|
- sizeof(struct page) > PAGE_SIZE)
|
|
|
|
|
|
+ sizeof(struct page *) > PAGE_SIZE)
|
|
return 0;
|
|
return 0;
|
|
|
|
|
|
return min(mirror->pg_bsize - mirror->pg_count, (size_t)req->wb_bytes);
|
|
return min(mirror->pg_bsize - mirror->pg_count, (size_t)req->wb_bytes);
|