aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/internal.h
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2013-04-11 20:08:50 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2013-05-01 17:29:39 -0400
commit1dd704b6175f067781807ad4da1b878357dc9755 (patch)
tree654f8494b04c0e630edfb4e9da2a50fcaa341b57 /fs/proc/internal.h
parent271a15eabe094538d958dc68ccfc9c36b699247a (diff)
proc: Uninline pid_delete_dentry()
Uninline pid_delete_dentry() as it's only used by three function pointers. Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/proc/internal.h')
-rw-r--r--fs/proc/internal.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/fs/proc/internal.h b/fs/proc/internal.h
index 4b13417acfc4..aaf2dd8c2b10 100644
--- a/fs/proc/internal.h
+++ b/fs/proc/internal.h
@@ -114,15 +114,6 @@ static inline int task_dumpable(struct task_struct *task)
114 return 0; 114 return 0;
115} 115}
116 116
117static inline int pid_delete_dentry(const struct dentry * dentry)
118{
119 /* Is the task we represent dead?
120 * If so, then don't put the dentry on the lru list,
121 * kill it immediately.
122 */
123 return !proc_pid(dentry->d_inode)->tasks[PIDTYPE_PID].first;
124}
125
126static inline unsigned name_to_int(struct dentry *dentry) 117static inline unsigned name_to_int(struct dentry *dentry)
127{ 118{
128 const char *name = dentry->d_name.name; 119 const char *name = dentry->d_name.name;
@@ -145,6 +136,11 @@ out:
145 return ~0U; 136 return ~0U;
146} 137}
147 138
139/*
140 * base.c
141 */
142extern int pid_delete_dentry(const struct dentry *);
143
148struct dentry *proc_lookup_de(struct proc_dir_entry *de, struct inode *ino, 144struct dentry *proc_lookup_de(struct proc_dir_entry *de, struct inode *ino,
149 struct dentry *dentry); 145 struct dentry *dentry);
150int proc_readdir_de(struct proc_dir_entry *de, struct file *filp, void *dirent, 146int proc_readdir_de(struct proc_dir_entry *de, struct file *filp, void *dirent,