diff options
author | David Howells <dhowells@redhat.com> | 2013-04-12 02:08:50 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-05-01 23:29:39 +0200 |
commit | 1dd704b6175f067781807ad4da1b878357dc9755 (patch) | |
tree | 654f8494b04c0e630edfb4e9da2a50fcaa341b57 /fs/proc/internal.h | |
parent | proc: Supply PDE attribute setting accessor functions (diff) | |
download | linux-1dd704b6175f067781807ad4da1b878357dc9755.tar.xz linux-1dd704b6175f067781807ad4da1b878357dc9755.zip |
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 '')
-rw-r--r-- | fs/proc/internal.h | 14 |
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) return 0; } -static inline int pid_delete_dentry(const struct dentry * dentry) -{ - /* Is the task we represent dead? - * If so, then don't put the dentry on the lru list, - * kill it immediately. - */ - return !proc_pid(dentry->d_inode)->tasks[PIDTYPE_PID].first; -} - static inline unsigned name_to_int(struct dentry *dentry) { const char *name = dentry->d_name.name; @@ -145,6 +136,11 @@ out: return ~0U; } +/* + * base.c + */ +extern int pid_delete_dentry(const struct dentry *); + struct dentry *proc_lookup_de(struct proc_dir_entry *de, struct inode *ino, struct dentry *dentry); int proc_readdir_de(struct proc_dir_entry *de, struct file *filp, void *dirent, |