diff options
| author | Oleg Nesterov <[email protected]> | 2014-10-09 15:25:30 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2014-10-09 22:25:48 -0400 |
| commit | 23d54837e4f3a44ad4514d5eae8245c2250217ff (patch) | |
| tree | 086ff9b97bd790748e9da7798d6714cd8fca06f6 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | 59b4bf12d4776c0e4f3fd5c02d942f3a0596da97 (diff) | |
fs/proc/task_mmu.c: cleanup the "tail_vma" horror in m_next()
1. Kill the first "vma != NULL" check. Firstly this is not possible,
m_next() won't be called if ->start() or the previous ->next()
returns NULL.
And if it was possible the 2nd "vma != tail_vma" check is buggy,
we should not wrongly return ->tail_vma.
2. Make this function readable. The logic is very simple, we should
return check "vma != tail" once and return "vm_next || tail_vma".
Signed-off-by: Oleg Nesterov <[email protected]>
Acked-by: Kirill A. Shutemov <[email protected]>
Acked-by: Cyrill Gorcunov <[email protected]>
Cc: "Eric W. Biederman" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions