aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2013-04-11 20:42:56 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2013-05-01 17:29:39 -0400
commitc3bef7bcaaa7d9f6704fcd81a171c9f0c91a2259 (patch)
treeb0b1dc703676f3fb706e93a933272f50b44ed6dc /fs/proc
parent1dd704b6175f067781807ad4da1b878357dc9755 (diff)
proc: Move proc_fd() to fs/proc/fd.h
Move proc_fd() to fs/proc/fd.h. Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/proc')
-rw-r--r--fs/proc/fd.h5
-rw-r--r--fs/proc/internal.h5
2 files changed, 5 insertions, 5 deletions
diff --git a/fs/proc/fd.h b/fs/proc/fd.h
index cbb1d47deda8..7c047f256ae2 100644
--- a/fs/proc/fd.h
+++ b/fs/proc/fd.h
@@ -11,4 +11,9 @@ extern const struct inode_operations proc_fdinfo_inode_operations;
11 11
12extern int proc_fd_permission(struct inode *inode, int mask); 12extern int proc_fd_permission(struct inode *inode, int mask);
13 13
14static inline int proc_fd(struct inode *inode)
15{
16 return PROC_I(inode)->fd;
17}
18
14#endif /* __PROCFS_FD_H__ */ 19#endif /* __PROCFS_FD_H__ */
diff --git a/fs/proc/internal.h b/fs/proc/internal.h
index aaf2dd8c2b10..32d8f510d65c 100644
--- a/fs/proc/internal.h
+++ b/fs/proc/internal.h
@@ -94,11 +94,6 @@ static inline struct task_struct *get_proc_task(struct inode *inode)
94 return get_pid_task(proc_pid(inode), PIDTYPE_PID); 94 return get_pid_task(proc_pid(inode), PIDTYPE_PID);
95} 95}
96 96
97static inline int proc_fd(struct inode *inode)
98{
99 return PROC_I(inode)->fd;
100}
101
102static inline int task_dumpable(struct task_struct *task) 97static inline int task_dumpable(struct task_struct *task)
103{ 98{
104 int dumpable = 0; 99 int dumpable = 0;