提交 4abfd029 编写于 作者: D David Howells 提交者: Al Viro

proc: Move PDE_NET() to fs/proc/proc_net.c

Move PDE_NET() to fs/proc/proc_net.c as that's where the only user is.
Signed-off-by: NDavid Howells <dhowells@redhat.com>
Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 0bb80f24
...@@ -26,6 +26,10 @@ ...@@ -26,6 +26,10 @@
#include "internal.h" #include "internal.h"
static inline struct net *PDE_NET(struct proc_dir_entry *pde)
{
return pde->parent->data;
}
static struct net *get_proc_net(const struct inode *inode) static struct net *get_proc_net(const struct inode *inode)
{ {
......
...@@ -187,11 +187,6 @@ static inline void *PDE_DATA(const struct inode *inode) ...@@ -187,11 +187,6 @@ static inline void *PDE_DATA(const struct inode *inode)
return PROC_I(inode)->pde->data; return PROC_I(inode)->pde->data;
} }
static inline struct net *PDE_NET(struct proc_dir_entry *pde)
{
return pde->parent->data;
}
#include <linux/signal.h> #include <linux/signal.h>
void render_sigset_t(struct seq_file *m, const char *header, sigset_t *set); void render_sigset_t(struct seq_file *m, const char *header, sigset_t *set);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册