summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEryu Guan <eguan@redhat.com>2017-07-18 07:32:32 +0200
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2017-07-21 14:49:57 +0200
commitecc7b435d2beb025d7506af74cf749af2cef5734 (patch)
treee8df3a94d1df437bb83f50a332860324fb276351
parentRevert commit 722f0b891198 ("pNFS: Don't send COMMITs to the DSes if...") (diff)
downloadlinux-ecc7b435d2beb025d7506af74cf749af2cef5734.tar.xz
linux-ecc7b435d2beb025d7506af74cf749af2cef5734.zip
nfs: count correct array for mnt3_counts array size
Array size of mnt3_counts should be the size of array mnt3_procedures, not mnt_procedures, though they're same in size right now. Found this by code inspection. Fixes: 1c5876ddbdb4 ("sunrpc: move p_count out of struct rpc_procinfo") Cc: Christoph Hellwig <hch@lst.de> Signed-off-by: Eryu Guan <eguan@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
-rw-r--r--fs/nfs/mount_clnt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/mount_clnt.c b/fs/nfs/mount_clnt.c
index 3efe946672be..60bad882c123 100644
--- a/fs/nfs/mount_clnt.c
+++ b/fs/nfs/mount_clnt.c
@@ -512,7 +512,7 @@ static const struct rpc_version mnt_version1 = {
.counts = mnt_counts,
};
-static unsigned int mnt3_counts[ARRAY_SIZE(mnt_procedures)];
+static unsigned int mnt3_counts[ARRAY_SIZE(mnt3_procedures)];
static const struct rpc_version mnt_version3 = {
.number = 3,
.nrprocs = ARRAY_SIZE(mnt3_procedures),