diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2011-01-12 20:00:33 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-13 11:03:16 -0500 |
commit | 6d1b6e4eff89475785f60fa00f65da780f869f36 (patch) | |
tree | 41608a81f14b824c97b8d8f0849aff04bcf1f537 /fs/proc/internal.h | |
parent | 9d6de12f70d2fb1487c4f482a21fed25fe74e0fd (diff) |
proc: ->low_ino cleanup
- ->low_ino is write-once field -- reading it under locks is unnecessary.
- /proc/$PID stuff never reaches pde_put()/free_proc_entry() --
PROC_DYNAMIC_FIRST check never triggers.
- in proc_get_inode(), inode number always matches proc dir entry, so
save one parameter.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/proc/internal.h')
-rw-r--r-- | fs/proc/internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/internal.h b/fs/proc/internal.h index 659ea6af379a..9ad561ded409 100644 --- a/fs/proc/internal.h +++ b/fs/proc/internal.h | |||
@@ -109,7 +109,7 @@ void pde_put(struct proc_dir_entry *pde); | |||
109 | 109 | ||
110 | extern struct vfsmount *proc_mnt; | 110 | extern struct vfsmount *proc_mnt; |
111 | int proc_fill_super(struct super_block *); | 111 | int proc_fill_super(struct super_block *); |
112 | struct inode *proc_get_inode(struct super_block *, unsigned int, struct proc_dir_entry *); | 112 | struct inode *proc_get_inode(struct super_block *, struct proc_dir_entry *); |
113 | 113 | ||
114 | /* | 114 | /* |
115 | * These are generic /proc routines that use the internal | 115 | * These are generic /proc routines that use the internal |