projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1dd704b
)
proc: Move proc_fd() to fs/proc/fd.h
author
David Howells
<
[email protected]
>
Fri, 12 Apr 2013 00:42:56 +0000
(
01:42
+0100)
committer
Al Viro
<
[email protected]
>
Wed, 1 May 2013 21:29:39 +0000
(17:29 -0400)
Move proc_fd() to fs/proc/fd.h.
Signed-off-by: David Howells <
[email protected]
>
Signed-off-by: Al Viro <
[email protected]
>
fs/proc/fd.h
patch
|
blob
|
history
fs/proc/internal.h
patch
|
blob
|
history
diff --git
a/fs/proc/fd.h
b/fs/proc/fd.h
index cbb1d47deda8c11ce81f2b32ffe2ec6b7841122b..7c047f256ae2ccb945aab10d8688d6305b5a0eb7 100644
(file)
--- 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__ */
diff --git
a/fs/proc/internal.h
b/fs/proc/internal.h
index aaf2dd8c2b1052b9db79cb267deb4800d3b53850..32d8f510d65c3b4ceafad3fd975a0acdff0ec3f1 100644
(file)
--- a/
fs/proc/internal.h
+++ b/
fs/proc/internal.h
@@
-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;