summaryrefslogtreecommitdiff
path: root/fs/nfs/pagelist.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-09-29 13:52:07 +0300
committerTakashi Iwai <tiwai@suse.de>2015-09-29 13:52:07 +0300
commitd8dfacf8b50c260d79864933ac82a8198a0908a9 (patch)
treeb172eb8643de7bd9f9439c58031b06c98116d86a /fs/nfs/pagelist.c
parente87359efcaf45efc41dbaa6ec25eb26705300cee (diff)
parentdf075feefbd347f13fba5198294cda619532c237 (diff)
downloadlinux-d8dfacf8b50c260d79864933ac82a8198a0908a9.tar.xz
Merge branch 'topic/firewire-update' into for-next
Diffstat (limited to 'fs/nfs/pagelist.c')
-rw-r--r--fs/nfs/pagelist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/pagelist.c b/fs/nfs/pagelist.c
index 7c5718ba625e..fe3ddd20ff89 100644
--- a/fs/nfs/pagelist.c
+++ b/fs/nfs/pagelist.c
@@ -508,7 +508,7 @@ size_t nfs_generic_pg_test(struct nfs_pageio_descriptor *desc,
* for it without upsetting the slab allocator.
*/
if (((mirror->pg_count + req->wb_bytes) >> PAGE_SHIFT) *
- sizeof(struct page) > PAGE_SIZE)
+ sizeof(struct page *) > PAGE_SIZE)
return 0;
return min(mirror->pg_bsize - mirror->pg_count, (size_t)req->wb_bytes);