]> git.baikalelectronics.ru Git - kernel.git/commit
mm/hugetlb: optimize the surplus state transfer code in move_hugetlb_state()
authorMiaohe Lin <linmiaohe@huawei.com>
Wed, 5 May 2021 01:33:25 +0000 (18:33 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 5 May 2021 18:27:20 +0000 (11:27 -0700)
commitb66bbd01743de8bdcd886028d6d2a9adc70fa5d1
tree1907856e8b82724b1e2c34927be58438859f8400
parent848cffd78dfa27906e4ebff7fd03b0314fa82d81
mm/hugetlb: optimize the surplus state transfer code in move_hugetlb_state()

We should not transfer the per-node surplus state when we do not cross the
node in order to save some cpu cycles

Link: https://lkml.kernel.org/r/20210308112809.26107-3-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: Mike Kravetz <mike.kravetz@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/hugetlb.c