diff options
Diffstat (limited to 'fs/proc/proc_net.c')
-rw-r--r-- | fs/proc/proc_net.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/proc/proc_net.c b/fs/proc/proc_net.c index 358930a3142a..85cc8e8bb862 100644 --- a/fs/proc/proc_net.c +++ b/fs/proc/proc_net.c | |||
@@ -51,6 +51,12 @@ void proc_net_remove(struct net *net, const char *name) | |||
51 | } | 51 | } |
52 | EXPORT_SYMBOL_GPL(proc_net_remove); | 52 | EXPORT_SYMBOL_GPL(proc_net_remove); |
53 | 53 | ||
54 | struct net *get_proc_net(const struct inode *inode) | ||
55 | { | ||
56 | return maybe_get_net(PDE_NET(PDE(inode))); | ||
57 | } | ||
58 | EXPORT_SYMBOL_GPL(get_proc_net); | ||
59 | |||
54 | static struct proc_dir_entry *proc_net_shadow; | 60 | static struct proc_dir_entry *proc_net_shadow; |
55 | 61 | ||
56 | static struct dentry *proc_net_shadow_dentry(struct dentry *parent, | 62 | static struct dentry *proc_net_shadow_dentry(struct dentry *parent, |