From: Li RongQing Date: Sun, 23 Nov 2014 04:47:17 +0000 (+0800) Subject: nfs: replace nfs_add_stats with nfs_inc_stats when add one X-Git-Tag: v5.15~16746^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5a254d08b086d80cbead2ebcee6d2a4b3a15587a;p=platform%2Fkernel%2Flinux-starfive.git nfs: replace nfs_add_stats with nfs_inc_stats when add one Signed-off-by: Li RongQing Signed-off-by: Trond Myklebust --- diff --git a/fs/nfs/read.c b/fs/nfs/read.c index beff276..c91a479 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.. diff --git a/fs/nfs/write.c b/fs/nfs/write.c index d489ff3..af3af68 100644 --- a/fs/nfs/write.c +++ b/fs/nfs/write.c @@ -575,7 +575,7 @@ static int nfs_do_writepage(struct page *page, struct writeback_control *wbc, st int ret; nfs_inc_stats(inode, NFSIOS_VFSWRITEPAGE); - nfs_add_stats(inode, NFSIOS_WRITEPAGES, 1); + nfs_inc_stats(inode, NFSIOS_WRITEPAGES); nfs_pageio_cond_complete(pgio, page_file_index(page)); ret = nfs_page_async_flush(pgio, page, wbc->sync_mode == WB_SYNC_NONE);