Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "nfs: replace nfs_add_stats with nfs_inc_stats when add one"
This reverts commit 5a254d0. Since commit 5a254d0 ("nfs: replace nfs_add_stats with nfs_inc_stats when add one"), nfs_readpage and nfs_do_writepage use nfs_inc_stats to increment NFSIOS_READPAGES and NFSIOS_WRITEPAGES instead of nfs_add_stats. However nfs_inc_stats does not do the same thing as nfs_add_stats with value 1 because these functions work on distinct stats: nfs_inc_stats increments stats from "enum nfs_stat_eventcounters" (in server->io_stats->events) and nfs_add_stats those from "enum nfs_stat_bytecounters" (in server->io_stats->bytes). Signed-off-by: Nicolas Iooss <[email protected]> Fixes: 5a254d0 ("nfs: replace nfs_add_stats with nfs_inc_stats...") Cc: [email protected] # 3.19+ Signed-off-by: Trond Myklebust <[email protected]>
- Loading branch information