HomeFreeBSD

powerpc64/mmu: Make moea64_pvo_enter() return if an entry already exists

Description

powerpc64/mmu: Make moea64_pvo_enter() return if an entry already exists

Summary:
Instead of searching for a PVO entry before adding, take advantage of
the fact that RB_INSERT() returns NULL if it inserts, and the existing entry if
an entry exists, without inserting a new entry. This saves an extra tree
traversal in the cases where the PVO does not exist.

Reviewed by: luporl
Differential Revision: https://reviews.freebsd.org/D20944

Details

Committed
jhibbitsJul 22 2019, 3:11 AM
Reviewer
luporl
Differential Revision
D20944: powerpc64/mmu: Make moea64_pvo_enter() return if an entry already exists
Parents
rS350205: nand: create device with 0640 permission
Branches
Unknown
Tags
Unknown