diff options
author | David Howells <dhowells@redhat.com> | 2013-04-11 21:09:03 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-05-01 17:29:40 -0400 |
commit | 4abfd0298900851930310e5d736a7f3a105089ec (patch) | |
tree | a798024b92393712c103d32f0b68b1e135287ca0 /fs/proc/proc_net.c | |
parent | 0bb80f240520c4148b623161e7856858c021696d (diff) |
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: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/proc/proc_net.c')
-rw-r--r-- | fs/proc/proc_net.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/proc/proc_net.c b/fs/proc/proc_net.c index b4ac6572474f..986e83220d56 100644 --- a/fs/proc/proc_net.c +++ b/fs/proc/proc_net.c | |||
@@ -26,6 +26,10 @@ | |||
26 | 26 | ||
27 | #include "internal.h" | 27 | #include "internal.h" |
28 | 28 | ||
29 | static inline struct net *PDE_NET(struct proc_dir_entry *pde) | ||
30 | { | ||
31 | return pde->parent->data; | ||
32 | } | ||
29 | 33 | ||
30 | static struct net *get_proc_net(const struct inode *inode) | 34 | static struct net *get_proc_net(const struct inode *inode) |
31 | { | 35 | { |