From b8fb9c30f25e45dab5d2cd310ab6913b6861d00f Mon Sep 17 00:00:00 2001 From: Trond Myklebust Date: Mon, 13 Oct 2014 10:56:12 -0400 Subject: [PATCH] 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 Fixes: bba5c1887a92 (nfs: disallow duplicate pages in pgio page vectors) Cc: Weston Andros Adamson Cc: stable@vger.kernel.org # 3.16.x Signed-off-by: Trond Myklebust --- Reading git-format-patch failed