diff options
author | David Howells <dhowells@redhat.com> | 2013-04-12 01:42:56 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-05-01 17:29:39 -0400 |
commit | c3bef7bcaaa7d9f6704fcd81a171c9f0c91a2259 (patch) | |
tree | b0b1dc703676f3fb706e93a933272f50b44ed6dc /fs/proc/fd.h | |
parent | 1dd704b6175f067781807ad4da1b878357dc9755 (diff) | |
download | blackbird-op-linux-c3bef7bcaaa7d9f6704fcd81a171c9f0c91a2259.tar.gz blackbird-op-linux-c3bef7bcaaa7d9f6704fcd81a171c9f0c91a2259.zip |
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/fd.h')
-rw-r--r-- | fs/proc/fd.h | 5 |
1 files changed, 5 insertions, 0 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; 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__ */ |