]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Fix initialization of nfs_page_array->npages
authorBenjamin Coddington <bcodding@redhat.com>
Fri, 9 Jun 2017 15:03:23 +0000 (11:03 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Thu, 13 Jul 2017 19:58:06 +0000 (15:58 -0400)
commit2ef7ac9cba0603a957fba4202914e73be8df85ea
tree7144d3907b09c5a2df836b73b6a5baed3ade6491
parent929ae80734a353b8846f9c8db22bbf4a0cda5f6e
NFS: Fix initialization of nfs_page_array->npages

Commit 908db95a2ef1 open-coded nfs_pgarray_set(), and left out the
initialization of the nfs_page_array's npages.  This mistake didn't show up
until testing with block layouts, and there shows that all pNFS reads
return -EIO.

Fixes: 908db95a2ef1 ("NFS: move nfs_pgarray_set() to open code")
Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
Cc: stable@vger.kernel.org # 4.12
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/pagelist.c