diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2006-06-26 03:25:44 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-26 12:58:24 -0400 |
commit | aed7a6c476d90660ac5af860158407ae9fe61c68 (patch) | |
tree | b8b92412f457598a2348de0eb304b9b4ec204157 /fs/proc/internal.h | |
parent | 87bfbf679ffb1e95dd9ada694f66aafc4bfa5959 (diff) |
[PATCH] proc: Replace proc_inode.type with proc_inode.fd
The sole renaming use of proc_inode.type is to discover the file descriptor
number, so just store the file descriptor number and don't wory about
processing this field. This removes any /proc limits on the maximum number of
file descriptors, and clears the path to make the hard coded /proc inode
numbers go away.
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/proc/internal.h')
-rw-r--r-- | fs/proc/internal.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/proc/internal.h b/fs/proc/internal.h index 0502f17b860d..6264b7a3a9f0 100644 --- a/fs/proc/internal.h +++ b/fs/proc/internal.h | |||
@@ -46,7 +46,7 @@ static inline struct task_struct *proc_task(struct inode *inode) | |||
46 | return PROC_I(inode)->task; | 46 | return PROC_I(inode)->task; |
47 | } | 47 | } |
48 | 48 | ||
49 | static inline int proc_type(struct inode *inode) | 49 | static inline int proc_fd(struct inode *inode) |
50 | { | 50 | { |
51 | return PROC_I(inode)->type; | 51 | return PROC_I(inode)->fd; |
52 | } | 52 | } |