]> git.baikalelectronics.ru Git - kernel.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)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 13 Oct 2014 15:04:02 +0000 (11:04 -0400)
commit8cef77dab748f82ca17d52d54002992ce518f441
treed21470fdb513dd9a0f8160dbbdb9405a7751ce27
parent108b444d5e3e537fb71a71ab5e3d702d2ba0b652
NFS: Fix a bogus warning in nfs_generic_pgio

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: 35d5c35e653b (nfs: disallow duplicate pages in pgio page vectors)
Cc: Weston Andros Adamson <dros@primarydata.com>
Cc: stable@vger.kernel.org # 3.16.x
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/pagelist.c