nfs: fix pg_test page count calculation
authorPeng Tao <tao.peng@primarydata.com>
Fri, 11 Sep 2015 03:14:06 +0000 (11:14 +0800)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 17 Sep 2015 19:48:23 +0000 (15:48 -0400)
commit048883e0b934d9a5103d40e209cb14b7f33d2933
treef96c88dc05fceef2ff08fbe5470cc9a36310aa67
parenta41cbe86df3afbc82311a1640e20858c0cd7e065
nfs: fix pg_test page count calculation

We really want sizeof(struct page *) instead. Otherwise we limit
maximum IO size to 64 pages rather than 512 pages on a 64bit system.

Fixes 2e11f829(nfs: cap request size to fit a kmalloced page array).

Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Peng Tao <tao.peng@primarydata.com>
Fixes: 2e11f8296d22 ("nfs: cap request size to fit a kmalloced page array")
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/pagelist.c
This page took 0.026577 seconds and 5 git commands to generate.