Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 26025
b: refs/heads/master
c: 7866bab
h: refs/heads/master
i:
  26023: 9fa6202
v: v3
  • Loading branch information
Adrian Bunk authored and Trond Myklebust committed Apr 19, 2006
1 parent fe645a1 commit fcebb05
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 95cf959b245832ad49bb333bf88f9805244b225d
refs/heads/master: 7866babad542bb5e1dc95deb5800b577abef58dd
12 changes: 12 additions & 0 deletions trunk/include/linux/sunrpc/metrics.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,21 @@ struct rpc_clnt;
/*
* EXPORTed functions for managing rpc_iostats structures
*/

#ifdef CONFIG_PROC_FS

struct rpc_iostats * rpc_alloc_iostats(struct rpc_clnt *);
void rpc_count_iostats(struct rpc_task *);
void rpc_print_iostats(struct seq_file *, struct rpc_clnt *);
void rpc_free_iostats(struct rpc_iostats *);

#else /* CONFIG_PROC_FS */

static inline struct rpc_iostats *rpc_alloc_iostats(struct rpc_clnt *clnt) { return NULL; }
static inline void rpc_count_iostats(struct rpc_task *task) {}
static inline void rpc_print_iostats(struct seq_file *seq, struct rpc_clnt *clnt) {}
static inline void rpc_free_iostats(struct rpc_iostats *stats) {}

#endif /* CONFIG_PROC_FS */

#endif /* _LINUX_SUNRPC_METRICS_H */

0 comments on commit fcebb05

Please sign in to comment.