nfs: pass the correct prototype to read_cache_page
authorChristoph Hellwig <hch@lst.de>
Wed, 1 May 2019 16:06:35 +0000 (12:06 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Thu, 9 May 2019 20:26:57 +0000 (16:26 -0400)
commita46126ccc77e764429d63bf958d117f607f4b6c6
tree00cd9f45890ffa99dacfe50924142db80ea63485
parent8ca017c8cee3aa6a37ddf1db7fd04c54536a0ef0
nfs: pass the correct prototype to read_cache_page

Fix the callbacks NFS passes to read_cache_page to actually have the
proper type expected.  Casting around function pointers can easily
hide typing bugs, and defeats control flow protection.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/dir.c
fs/nfs/symlink.c