nfs: replace nfs_add_stats with nfs_inc_stats when add one
authorLi RongQing <roy.qing.li@gmail.com>
Sun, 23 Nov 2014 04:47:17 +0000 (12:47 +0800)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 25 Nov 2014 01:08:47 +0000 (20:08 -0500)
Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/read.c
fs/nfs/write.c

index beff2769c5c587f9955ec55fd41444326a36c97e..c91a4799c5627a5516f53cd5b7cf3829afa6b68b 100644 (file)
@@ -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..
index d489ff3f438f86177b34f110e084e1fca71659bc..af3af685a9e3791a361413976939bd8bc9668f05 100644 (file)
@@ -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);
This page took 0.027998 seconds and 5 git commands to generate.