Commit c3bef7bc authored by David Howells's avatar David Howells Committed by Al Viro

proc: Move proc_fd() to fs/proc/fd.h

Move proc_fd() to fs/proc/fd.h.
Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 1dd704b6
...@@ -11,4 +11,9 @@ extern const struct inode_operations proc_fdinfo_inode_operations; ...@@ -11,4 +11,9 @@ extern const struct inode_operations proc_fdinfo_inode_operations;
extern int proc_fd_permission(struct inode *inode, int mask); extern int proc_fd_permission(struct inode *inode, int mask);
static inline int proc_fd(struct inode *inode)
{
return PROC_I(inode)->fd;
}
#endif /* __PROCFS_FD_H__ */ #endif /* __PROCFS_FD_H__ */
...@@ -94,11 +94,6 @@ static inline struct task_struct *get_proc_task(struct inode *inode) ...@@ -94,11 +94,6 @@ static inline struct task_struct *get_proc_task(struct inode *inode)
return get_pid_task(proc_pid(inode), PIDTYPE_PID); return get_pid_task(proc_pid(inode), PIDTYPE_PID);
} }
static inline int proc_fd(struct inode *inode)
{
return PROC_I(inode)->fd;
}
static inline int task_dumpable(struct task_struct *task) static inline int task_dumpable(struct task_struct *task)
{ {
int dumpable = 0; int dumpable = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment