Skip to content

Commit

Permalink
proc: Move proc_fd() to fs/proc/fd.h
Browse files Browse the repository at this point in the history
Move proc_fd() to fs/proc/fd.h.

Signed-off-by: David Howells <[email protected]>
Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
dhowells authored and Al Viro committed May 1, 2013
1 parent 1dd704b commit c3bef7b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions fs/proc/fd.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,9 @@ extern const struct inode_operations proc_fdinfo_inode_operations;

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__ */
5 changes: 0 additions & 5 deletions fs/proc/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,6 @@ static inline struct task_struct *get_proc_task(struct inode *inode)
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)
{
int dumpable = 0;
Expand Down

0 comments on commit c3bef7b

Please sign in to comment.