]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NFS: Fix a bogus warning in nfs_generic_pgio
authorTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 13 Oct 2014 14:56:12 +0000 (10:56 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Oct 2014 16:43:10 +0000 (09:43 -0700)
commit8897bf1c7fa8b3524bb2cf343d4eb6d9b12204b5
tree0437b8b9a8e85f69209bd76ae7c6a6c6a07a05f3
parent56319a855a77bf8df4c87ad9c34cd2c2a538e663
NFS: Fix a bogus warning in nfs_generic_pgio

commit b8fb9c30f25e45dab5d2cd310ab6913b6861d00f upstream.

It is OK for pageused == pagecount in the loop, as long as we don't add
another entry to the *pages array. Move the test so that it only triggers
in that case.

Reported-by: Steve Dickson <SteveD@redhat.com>
Fixes: bba5c1887a92 (nfs: disallow duplicate pages in pgio page vectors)
Cc: Weston Andros Adamson <dros@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/pagelist.c