diff options
| author | yan <[email protected]> | 2012-10-04 17:15:41 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2012-10-06 03:05:18 +0900 |
| commit | 0e06936057674ef3f2bd0b398a32ddc512642992 (patch) | |
| tree | 40b41684f6fe18ef45486e1d522bbca9e791bcda /tools/perf/scripts/python/syscall-counts.py | |
| parent | 620727506dc6da0562fa4f6950dedb8a51bd8237 (diff) | |
proc: no need to initialize proc_inode->fd in proc_get_inode()
proc_get_inode() obtains the inode via a call to iget_locked().
iget_locked() calls alloc_inode() which will call proc_alloc_inode() which
clears proc_inode.fd, so there is no need to clear this field in
proc_get_inode().
If iget_locked() instead found the inode via find_inode_fast(), that inode
will not have I_NEW set so this change has no effect.
Signed-off-by: yan <[email protected]>
Cc: Al Viro <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions