aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-cmp.c
diff options
context:
space:
mode:
authorWei Yang <[email protected]>2019-09-23 15:36:27 -0700
committerLinus Torvalds <[email protected]>2019-09-24 15:54:09 -0700
commitc1cbc3eebf7a9ae46473a66710c0859aaafc1607 (patch)
tree701fabe4c243c8c44d3f5ab0bfd9a09fd607d0b6 /lib/mpi/mpi-cmp.c
parentdb57e98d87908b8837352abe08515e42752270c1 (diff)
mm/sparse.c: use __nr_to_section(section_nr) to get mem_section
__pfn_to_section is defined as __nr_to_section(pfn_to_section_nr(pfn)). Since we already get section_nr, it is not necessary to get mem_section from start_pfn. By doing so, we reduce one redundant operation. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Wei Yang <[email protected]> Reviewed-by: Anshuman Khandual <[email protected]> Tested-by: Anshuman Khandual <[email protected]> Cc: Oscar Salvador <[email protected]> Cc: Pavel Tatashin <[email protected]> Cc: Michal Hocko <[email protected]> Cc: David Hildenbrand <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions