summaryrefslogtreecommitdiffstats
path: root/fs/nfs/read.c
diff options
context:
space:
mode:
authorLi RongQing2014-11-23 05:47:17 +0100
committerTrond Myklebust2014-11-25 02:08:47 +0100
commit5a254d08b086d80cbead2ebcee6d2a4b3a15587a (patch)
treed64afa77a5bad81e9472e6f3a623ab98541f9e91 /fs/nfs/read.c
parentNFS: Deletion of unnecessary checks before the function call "nfs_put_client" (diff)
downloadkernel-qcow2-linux-5a254d08b086d80cbead2ebcee6d2a4b3a15587a.tar.gz
kernel-qcow2-linux-5a254d08b086d80cbead2ebcee6d2a4b3a15587a.tar.xz
kernel-qcow2-linux-5a254d08b086d80cbead2ebcee6d2a4b3a15587a.zip
nfs: replace nfs_add_stats with nfs_inc_stats when add one
Signed-off-by: Li RongQing <roy.qing.li@gmail.com> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/read.c')
-rw-r--r--fs/nfs/read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/read.c b/fs/nfs/read.c
index beff2769c5c5..c91a4799c562 100644
--- a/fs/nfs/read.c
+++ b/fs/nfs/read.c
@@ -269,7 +269,7 @@ int nfs_readpage(struct file *file, struct page *page)
dprintk("NFS: nfs_readpage (%p %ld@%lu)\n",
page, PAGE_CACHE_SIZE, page_file_index(page));
nfs_inc_stats(inode, NFSIOS_VFSREADPAGE);
- nfs_add_stats(inode, NFSIOS_READPAGES, 1);
+ nfs_inc_stats(inode, NFSIOS_READPAGES);
/*
* Try to flush any pending writes to the file..