aboutsummaryrefslogtreecommitdiff
path: root/lib/crypto/mpi/mpiutil.c
diff options
context:
space:
mode:
authorShakeel Butt <[email protected]>2024-09-06 16:05:12 -0700
committerAndrew Morton <[email protected]>2024-09-09 16:39:17 -0700
commit354a595a4a4d9dfc0d3e5703c6c5520e6c2f52d8 (patch)
treee5f4878255d3c472123f8ebe2b0101625489586e /lib/crypto/mpi/mpiutil.c
parent1930c6ad93ad01f82bb7965bbc04eb5a763f856d (diff)
mm: replace xa_get_order with xas_get_order where appropriate
The tracing of invalidation and truncation operations on large files showed that xa_get_order() is among the top functions where kernel spends a lot of CPUs. xa_get_order() needs to traverse the tree to reach the right node for a given index and then extract the order of the entry. However it seems like at many places it is being called within an already happening tree traversal where there is no need to do another traversal. Just use xas_get_order() at those places. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Shakeel Butt <[email protected]> Reviewed-by: Liam R. Howlett <[email protected]> Cc: Baolin Wang <[email protected]> Cc: Hugh Dickins <[email protected]> Cc: Matthew Wilcox <[email protected]> Cc: Nhat Pham <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions