Commit 4abfd029 authored by David Howells's avatar David Howells Committed by Al Viro
Browse files

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: default avatarDavid Howells <dhowells@redhat.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 0bb80f24
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -26,6 +26,10 @@

#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)
{
+0 −5
Original line number Diff line number Diff line
@@ -187,11 +187,6 @@ static inline void *PDE_DATA(const struct inode *inode)
	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>

void render_sigset_t(struct seq_file *m, const char *header, sigset_t *set);