diff options
| author | Stanislav Kinsbursky <skinsbursky@parallels.com> | 2011-12-06 08:42:40 -0500 |
|---|---|---|
| committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-01-31 19:28:17 -0500 |
| commit | ec7652aaf261b7dcb368344369df1e99886c7cd2 (patch) | |
| tree | 0d21ca45022adb1221690cb5e368bc17d3f58531 /include/linux/sunrpc/stats.h | |
| parent | 170942726b16a1dfcc605f0b510b9663b66fa7a3 (diff) | |
SUNRPC: register RPC stats /proc entries in passed network namespace context
This patch makes it possible to create NFS program entry ("/proc/net/rpc/nfs")
in passed network namespace context instead of hard-coded "init_net".
Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux/sunrpc/stats.h')
| -rw-r--r-- | include/linux/sunrpc/stats.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/sunrpc/stats.h b/include/linux/sunrpc/stats.h index 680471d1f28..f625b5746bd 100644 --- a/include/linux/sunrpc/stats.h +++ b/include/linux/sunrpc/stats.h | |||
| @@ -58,8 +58,8 @@ void rpc_modcount(struct inode *, int); | |||
| 58 | #endif | 58 | #endif |
| 59 | 59 | ||
| 60 | #ifdef CONFIG_PROC_FS | 60 | #ifdef CONFIG_PROC_FS |
| 61 | struct proc_dir_entry * rpc_proc_register(struct rpc_stat *); | 61 | struct proc_dir_entry * rpc_proc_register(struct net *,struct rpc_stat *); |
| 62 | void rpc_proc_unregister(const char *); | 62 | void rpc_proc_unregister(struct net *,const char *); |
| 63 | void rpc_proc_zero(struct rpc_program *); | 63 | void rpc_proc_zero(struct rpc_program *); |
| 64 | struct proc_dir_entry * svc_proc_register(struct svc_stat *, | 64 | struct proc_dir_entry * svc_proc_register(struct svc_stat *, |
| 65 | const struct file_operations *); | 65 | const struct file_operations *); |
| @@ -69,8 +69,8 @@ void svc_seq_show(struct seq_file *, | |||
| 69 | const struct svc_stat *); | 69 | const struct svc_stat *); |
| 70 | #else | 70 | #else |
| 71 | 71 | ||
| 72 | static inline struct proc_dir_entry *rpc_proc_register(struct rpc_stat *s) { return NULL; } | 72 | static inline struct proc_dir_entry *rpc_proc_register(struct net *, struct rpc_stat *s) { return NULL; } |
| 73 | static inline void rpc_proc_unregister(const char *p) {} | 73 | static inline void rpc_proc_unregisterstruct net *, (const char *p) {} |
| 74 | static inline void rpc_proc_zero(struct rpc_program *p) {} | 74 | static inline void rpc_proc_zero(struct rpc_program *p) {} |
| 75 | 75 | ||
| 76 | static inline struct proc_dir_entry *svc_proc_register(struct svc_stat *s, | 76 | static inline struct proc_dir_entry *svc_proc_register(struct svc_stat *s, |
