cregit-Linux how code gets into the kernel

Release 4.11 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 Lever2689.66%250.00%
Christoph Lameter26.90%125.00%
Trond 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 Lever2696.30%266.67%
Trond 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 Lever3088.24%250.00%
Christoph Lameter38.82%125.00%
Trond 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 Lever3196.88%150.00%
Trond 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 Howells3391.67%150.00%
Christoph 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 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 Lever1894.74%150.00%
Tejun 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 Lever1770.83%133.33%
Trond Myklebust625.00%133.33%
Tejun Heo14.17%133.33%
Total24100.00%3100.00%

#endif /* _NFS_IOSTAT */

Overall Contributors

PersonTokensPropCommitsCommitProp
Chuck Lever18864.83%333.33%
David Howells5117.59%111.11%
Li RongQing3110.69%111.11%
Trond Myklebust103.45%222.22%
Christoph Lameter82.76%111.11%
Tejun 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.
Created with cregit.