]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Oct 2015 21:49:24 +0000 (14:49 -0700)
commit0561ad19a608ac982f1b373ffc9f56a92a875f1b
tree8a019a4e4fecf2b53fc6ae46945c33530e2971f6
parent6244b5cded4c3b0749a144b84d7aaa17b6b84dce
nfs: fix pg_test page count calculation

commit 048883e0b934d9a5103d40e209cb14b7f33d2933 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/pagelist.c