aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/nfs_fs.h
diff options
context:
space:
mode:
authorDave Wysochanski <dwysocha@redhat.com>2021-01-28 09:55:00 -0500
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2021-02-01 13:32:48 -0500
commit6ddfd213f4ea22ac955bcd82100c57cd294494d2 (patch)
treed9ffe25a2201e72126473f9905b0e4d9651a7829 /include/linux/nfs_fs.h
parentNFS: Clean up nfs_readpage() and nfs_readpages() (diff)
downloadlinux-dev-6ddfd213f4ea22ac955bcd82100c57cd294494d2.tar.xz
linux-dev-6ddfd213f4ea22ac955bcd82100c57cd294494d2.zip
NFS: In nfs_readpage() only increment NFSIOS_READPAGES when read succeeds
There is a small inconsistency with nfs_readpage() vs nfs_readpages() with regards to NFSIOS_READPAGES. In readpage we unconditionally increment NFSIOS_READPAGES at the top, which means even if the read fails. In readpages, we increment NFSIOS_READPAGES at the bottom based on how many pages were successfully read. Change readpage to be consistent with readpages and so NFSIOS_READPAGES only reflects successful, non-fscache reads. Signed-off-by: Dave Wysochanski <dwysocha@redhat.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'include/linux/nfs_fs.h')
0 files changed, 0 insertions, 0 deletions