Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

David Howells and committed by
Al Viro
c3bef7bc 1dd704b6

+5 -5
+5
fs/proc/fd.h
··· 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__ */
-5
fs/proc/internal.h
··· 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;