diff options
| author | Trond Myklebust <trond.myklebust@primarydata.com> | 2014-10-13 10:56:12 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-10-30 09:40:14 -0700 |
| commit | 4e6dea4368c8352c269bfb06f792ff4b1e260a9f (patch) | |
| tree | 2167f6156ad987dd7adc1a75106d1fedc2c8849e /include/linux/memory_hotplug.h | |
| parent | db946becd0c21af9cc5362671475152c9022824b (diff) | |
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>
Diffstat (limited to 'include/linux/memory_hotplug.h')
0 files changed, 0 insertions, 0 deletions
