]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: In nfs_readpage() only increment NFSIOS_READPAGES when read succeeds
authorDave Wysochanski <dwysocha@redhat.com>
Thu, 28 Jan 2021 14:55:00 +0000 (09:55 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 1 Feb 2021 18:32:48 +0000 (13:32 -0500)
commite9c2dbf7c2dc8498939401c60ce744fd9c9d96c5
treed9ffe25a2201e72126473f9905b0e4d9651a7829
parent6e103c0229bcf00f1311d310e26c3e185a158881
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>
fs/nfs/read.c