+3
−3
+1
−1
Loading
Merge Pull Request from: @wedm23414 mainline inclusion from mainline-v6.12-rc1 commit 354a595a4a4d9dfc0d3e5703c6c5520e6c2f52d8 category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/IB5CID Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=354a595a4a4d9dfc0d3e5703c6c5520e6c2f52d8 -------------------------------- 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. Shakeel Butt (1): mm: replace xa_get_order with xas_get_order where appropriate -- 2.34.1 Link:https://gitee.com/openeuler/kernel/pulls/13350 Reviewed-by:Kefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by:
Zhang Peng <zhangpeng362@huawei.com>