/* * linux/fs/nfs/iostat.h * * Declarations for NFS client per-mount statistics * * Copyright (C) 2005, 2006 Chuck Lever * */ #ifndef _NFS_IOSTAT #define _NFS_IOSTAT #include #include #include 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]); } static inline void nfs_inc_stats(const struct inode *inode, enum nfs_stat_eventcounters stat) { nfs_inc_server_stats(NFS_SERVER(inode), stat); } 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); } 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); } #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); } 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) { return alloc_percpu(struct nfs_iostats); } static inline void nfs_free_iostats(struct nfs_iostats __percpu *stats) { if (stats != NULL) free_percpu(stats); } #endif /* _NFS_IOSTAT */ 28fcaadd259613f59db3c6d1c'>treecommitdiff
diff options
context:
space:
mode:
authorKalle Valo <kvalo@codeaurora.org>2017-01-27 14:19:25 +0200
committerKalle Valo <kvalo@codeaurora.org>2017-01-28 09:15:50 +0200
commit2b1d530cb3157f828fcaadd259613f59db3c6d1c (patch)
treefb5dfe8f2e6956f54377c7275f330cd158ead259 /net/rose/rose_out.c
parentbd19b5ab1da654de456e102250822ec06311d6ad (diff)
MAINTAINERS: ath9k-devel is closed
ath9k-devel list is now closed, only linux-wireless should be used. Reported-by: Michael Renzmann <mrenzmann@madwifi-project.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'net/rose/rose_out.c')