cregit-Linux how code gets into the kernel

Release 4.10 fs/nfs/iostat.h

Directory: fs/nfs
/*
 *  linux/fs/nfs/iostat.h
 *
 *  Declarations for NFS client per-mount statistics
 *
 *  Copyright (C) 2005, 2006 Chuck Lever <cel@netapp.com>
 *
 */

#ifndef _NFS_IOSTAT

#define _NFS_IOSTAT

#include <linux/percpu.h>
#include <linux/cache.h>
#include <linux/nfs_iostat.h>


struct nfs_iostats {
	
unsigned long long	bytes[__NFSIOS_BYTESMAX];
#ifdef CONFIG_NFS_FSCACHE
	
unsigned long long	fscache[__NFSIOS_FSCACHEMAX];
#endif
	
unsigned long		events[__NFSIOS_COUNTSMAX];
} 
____cacheline_aligned;


static inline void nfs_inc_server_stats(const struct nfs_server *server, enum nfs_stat_eventcounters stat) { this_cpu_inc(server->io_stats->events[stat]); }

Contributors

PersonTokensPropCommitsCommitProp
chuck leverchuck lever2689.66%250.00%
christoph lameterchristoph lameter26.90%125.00%
trond myklebusttrond myklebust13.45%125.00%
Total29100.00%4100.00%


static inline void nfs_inc_stats(const struct inode *inode, enum nfs_stat_eventcounters stat) { nfs_inc_server_stats(NFS_SERVER(inode), stat); }

Contributors

PersonTokensPropCommitsCommitProp
chuck leverchuck lever2696.30%266.67%
trond myklebusttrond myklebust13.70%133.33%
Total27100.00%3100.00%


static inline void nfs_add_server_stats(const struct nfs_server *server, enum nfs_stat_bytecounters stat, long addend) { this_cpu_add(server->io_stats->bytes[stat], addend); }

Contributors

PersonTokensPropCommitsCommitProp
chuck leverchuck lever3088.24%250.00%
christoph lameterchristoph lameter38.82%125.00%
trond myklebusttrond myklebust12.94%125.00%
Total34100.00%4100.00%


static inline void nfs_add_stats(const struct inode *inode, enum nfs_stat_bytecounters stat, long addend) { nfs_add_server_stats(NFS_SERVER(inode), stat, addend); }

Contributors

PersonTokensPropCommitsCommitProp
chuck leverchuck lever3196.88%150.00%
trond myklebusttrond myklebust13.12%150.00%
Total32100.00%2100.00%

#ifdef CONFIG_NFS_FSCACHE
static inline void nfs_add_fscache_stats(struct inode *inode, enum nfs_stat_fscachecounters stat, long addend) { this_cpu_add(NFS_SERVER(inode)->io_stats->fscache[stat], addend); }

Contributors

PersonTokensPropCommitsCommitProp
david howellsdavid howells3391.67%150.00%
christoph lameterchristoph lameter38.33%150.00%
Total36100.00%2100.00%


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]); }

Contributors

PersonTokensPropCommitsCommitProp
li rongqingli rongqing31100.00%1100.00%
Total31100.00%1100.00%

#endif
static inline struct nfs_iostats __percpu *nfs_alloc_iostats(void) { return alloc_percpu(struct nfs_iostats); }

Contributors

PersonTokensPropCommitsCommitProp
chuck leverchuck lever1894.74%150.00%
tejun heotejun heo15.26%150.00%
Total19100.00%2100.00%


static inline void nfs_free_iostats(struct nfs_iostats __percpu *stats) { if (stats != NULL) free_percpu(stats); }

Contributors

PersonTokensPropCommitsCommitProp
chuck leverchuck lever1770.83%133.33%
trond myklebusttrond myklebust625.00%133.33%
tejun heotejun heo14.17%133.33%
Total24100.00%3100.00%

#endif /* _NFS_IOSTAT */

Overall Contributors

PersonTokensPropCommitsCommitProp
chuck leverchuck lever18864.83%333.33%
david howellsdavid howells5117.59%111.11%
li rongqingli rongqing3110.69%111.11%
trond myklebusttrond myklebust103.45%222.22%
christoph lameterchristoph lameter82.76%111.11%
tejun heotejun heo20.69%111.11%
Total290100.00%9100.00%
Directory: fs/nfs
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.