Release 4.11 fs/nfs/iostat.h
/*
* 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
Person | Tokens | Prop | Commits | CommitProp |
Chuck Lever | 26 | 89.66% | 2 | 50.00% |
Christoph Lameter | 2 | 6.90% | 1 | 25.00% |
Trond Myklebust | 1 | 3.45% | 1 | 25.00% |
Total | 29 | 100.00% | 4 | 100.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
Person | Tokens | Prop | Commits | CommitProp |
Chuck Lever | 26 | 96.30% | 2 | 66.67% |
Trond Myklebust | 1 | 3.70% | 1 | 33.33% |
Total | 27 | 100.00% | 3 | 100.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
Person | Tokens | Prop | Commits | CommitProp |
Chuck Lever | 30 | 88.24% | 2 | 50.00% |
Christoph Lameter | 3 | 8.82% | 1 | 25.00% |
Trond Myklebust | 1 | 2.94% | 1 | 25.00% |
Total | 34 | 100.00% | 4 | 100.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
Person | Tokens | Prop | Commits | CommitProp |
Chuck Lever | 31 | 96.88% | 1 | 50.00% |
Trond Myklebust | 1 | 3.12% | 1 | 50.00% |
Total | 32 | 100.00% | 2 | 100.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
Person | Tokens | Prop | Commits | CommitProp |
David Howells | 33 | 91.67% | 1 | 50.00% |
Christoph Lameter | 3 | 8.33% | 1 | 50.00% |
Total | 36 | 100.00% | 2 | 100.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
Person | Tokens | Prop | Commits | CommitProp |
Li RongQing | 31 | 100.00% | 1 | 100.00% |
Total | 31 | 100.00% | 1 | 100.00% |
#endif
static inline struct nfs_iostats __percpu *nfs_alloc_iostats(void)
{
return alloc_percpu(struct nfs_iostats);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Chuck Lever | 18 | 94.74% | 1 | 50.00% |
Tejun Heo | 1 | 5.26% | 1 | 50.00% |
Total | 19 | 100.00% | 2 | 100.00% |
static inline void nfs_free_iostats(struct nfs_iostats __percpu *stats)
{
if (stats != NULL)
free_percpu(stats);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Chuck Lever | 17 | 70.83% | 1 | 33.33% |
Trond Myklebust | 6 | 25.00% | 1 | 33.33% |
Tejun Heo | 1 | 4.17% | 1 | 33.33% |
Total | 24 | 100.00% | 3 | 100.00% |
#endif /* _NFS_IOSTAT */
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Chuck Lever | 188 | 64.83% | 3 | 33.33% |
David Howells | 51 | 17.59% | 1 | 11.11% |
Li RongQing | 31 | 10.69% | 1 | 11.11% |
Trond Myklebust | 10 | 3.45% | 2 | 22.22% |
Christoph Lameter | 8 | 2.76% | 1 | 11.11% |
Tejun Heo | 2 | 0.69% | 1 | 11.11% |
Total | 290 | 100.00% | 9 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.