aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/lists.py
diff options
context:
space:
mode:
authorWei Yang <[email protected]>2019-09-23 15:39:25 -0700
committerLinus Torvalds <[email protected]>2019-09-24 15:54:12 -0700
commit73848a9711105836346462e1d3c6b5765b452de1 (patch)
tree1b564f7f54f5990bdbe3e84ebcf1324a9915e9d6 /scripts/gdb/linux/lists.py
parent54c95a11cc1b5e1d578209e027adf5775395dafd (diff)
mm/mmap.c: refine find_vma_prev() with rb_last()
When addr is out of range of the whole rb_tree, pprev will point to the right-most node. rb_tree facility already provides a helper function, rb_last(), to do this task. We can leverage this instead of reimplementing it. This patch refines find_vma_prev() with rb_last() to make it a little nicer to read. [[email protected]: little cleanup, per Vlastimil] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Wei Yang <[email protected]> Acked-by: Vlastimil Babka <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Kirill A. Shutemov <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/lists.py')
0 files changed, 0 insertions, 0 deletions