nfs: define nfs_inc_fscache_stats and using it as possible
Define and use nfs_inc_fscache_stats when plus one, which can save to pass one parameter. Signed-off-by: Li RongQing <roy.qing.li@gmail.com> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
This commit is contained in:

committed by
Trond Myklebust

parent
5a254d08b0
commit
e9f456ca50
@@ -55,6 +55,11 @@ static inline void nfs_add_fscache_stats(struct inode *inode,
|
||||
{
|
||||
this_cpu_add(NFS_SERVER(inode)->io_stats->fscache[stat], addend);
|
||||
}
|
||||
static inline void nfs_inc_fscache_stats(struct inode *inode,
|
||||
enum nfs_stat_fscachecounters stat)
|
||||
{
|
||||
this_cpu_inc(NFS_SERVER(inode)->io_stats->fscache[stat]);
|
||||
}
|
||||
#endif
|
||||
|
||||
static inline struct nfs_iostats __percpu *nfs_alloc_iostats(void)
|
||||
|
Reference in New Issue
Block a user