diff options
author | David Howells <dhowells@redhat.com> | 2013-04-12 13:03:36 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-05-01 17:29:47 -0400 |
commit | c30480b92cf497aa3b463367a82f1c2fdc5c46e9 (patch) | |
tree | be6dea0c5a45bd60a03ae99efdda0eb365db884a /fs/proc/generic.c | |
parent | a8ca16ea7b0abb0a7e49492d1123b715f0ec62e8 (diff) |
proc: Make the PROC_I() and PDE() macros internal to procfs
Make the PROC_I() and PDE() macros internal to procfs. This means making
PDE_DATA() out of line. This could be made more optimal by storing
PDE()->data into inode->i_private.
Also provide a __PDE_DATA() that is inline and internal to procfs.
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/proc/generic.c')
-rw-r--r-- | fs/proc/generic.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/fs/proc/generic.c b/fs/proc/generic.c index d9631d9b7aff..a2596afffae6 100644 --- a/fs/proc/generic.c +++ b/fs/proc/generic.c | |||
@@ -165,7 +165,7 @@ void proc_free_inum(unsigned int inum) | |||
165 | 165 | ||
166 | static void *proc_follow_link(struct dentry *dentry, struct nameidata *nd) | 166 | static void *proc_follow_link(struct dentry *dentry, struct nameidata *nd) |
167 | { | 167 | { |
168 | nd_set_link(nd, PDE_DATA(dentry->d_inode)); | 168 | nd_set_link(nd, __PDE_DATA(dentry->d_inode)); |
169 | return NULL; | 169 | return NULL; |
170 | } | 170 | } |
171 | 171 | ||
@@ -631,3 +631,9 @@ void proc_remove(struct proc_dir_entry *de) | |||
631 | remove_proc_subtree(de->name, de->parent); | 631 | remove_proc_subtree(de->name, de->parent); |
632 | } | 632 | } |
633 | EXPORT_SYMBOL(proc_remove); | 633 | EXPORT_SYMBOL(proc_remove); |
634 | |||
635 | void *PDE_DATA(const struct inode *inode) | ||
636 | { | ||
637 | return __PDE_DATA(inode); | ||
638 | } | ||
639 | EXPORT_SYMBOL(PDE_DATA); | ||