Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Li RongQing and committed by
Trond Myklebust
5a254d08 fe0bf118

+2 -2
+1 -1
fs/nfs/read.c
··· 269 269 dprintk("NFS: nfs_readpage (%p %ld@%lu)\n", 270 270 page, PAGE_CACHE_SIZE, page_file_index(page)); 271 271 nfs_inc_stats(inode, NFSIOS_VFSREADPAGE); 272 - nfs_add_stats(inode, NFSIOS_READPAGES, 1); 272 + nfs_inc_stats(inode, NFSIOS_READPAGES); 273 273 274 274 /* 275 275 * Try to flush any pending writes to the file..
+1 -1
fs/nfs/write.c
··· 575 575 int ret; 576 576 577 577 nfs_inc_stats(inode, NFSIOS_VFSWRITEPAGE); 578 - nfs_add_stats(inode, NFSIOS_WRITEPAGES, 1); 578 + nfs_inc_stats(inode, NFSIOS_WRITEPAGES); 579 579 580 580 nfs_pageio_cond_complete(pgio, page_file_index(page)); 581 581 ret = nfs_page_async_flush(pgio, page, wbc->sync_mode == WB_SYNC_NONE);