]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3a7a4ada46f4ba540e7af119917d129ccdaf3f2b
treef96c88dc05fceef2ff08fbe5470cc9a36310aa67
parentdfde153fed807867fade8ffa2775596175e7c231
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 12e418f4(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: 12e418f4a5f6 ("nfs: cap request size to fit a kmalloced page array")
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/pagelist.c