Commit c3bef7bcaaa7d9f6704fcd81a171c9f0c91a2259

Authored by David Howells
Committed by Al Viro
1 parent 1dd704b617

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>

Showing 2 changed files with 5 additions and 5 deletions Side-by-side Diff

... ... @@ -11,5 +11,10 @@
11 11  
12 12 extern int proc_fd_permission(struct inode *inode, int mask);
13 13  
  14 +static inline int proc_fd(struct inode *inode)
  15 +{
  16 + return PROC_I(inode)->fd;
  17 +}
  18 +
14 19 #endif /* __PROCFS_FD_H__ */
... ... @@ -94,11 +94,6 @@
94 94 return get_pid_task(proc_pid(inode), PIDTYPE_PID);
95 95 }
96 96  
97   -static inline int proc_fd(struct inode *inode)
98   -{
99   - return PROC_I(inode)->fd;
100   -}
101   -
102 97 static inline int task_dumpable(struct task_struct *task)
103 98 {
104 99 int dumpable = 0;