]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9d8cfe1d2855f6e85a162cc0ffbbdfa3239b02f3
tree00cd9f45890ffa99dacfe50924142db80ea63485
parenta3f5c5eaca442504694278fc944c73ccd32f3758
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