]> git.baikalelectronics.ru Git - kernel.git/commit
mm/hugetlb: use helper function range_in_vma() in page_table_shareable()
authorMiaohe Lin <linmiaohe@huawei.com>
Wed, 24 Feb 2021 20:07:39 +0000 (12:07 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 24 Feb 2021 21:38:33 +0000 (13:38 -0800)
commitc30fa40ac15854fa7ed7cc72ae22f813abb9012d
treef48b36b08bd69c745516480460b1601fd1de5c7d
parent9381bdf3ece808e0443f1475ce2924f6bba5cc98
mm/hugetlb: use helper function range_in_vma() in page_table_shareable()

We could use helper function range_in_vma() to check whether the vma is in
the desired range to simplify the code.

Link: https://lkml.kernel.org/r/20210204112949.43051-1-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