]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/migrate: Use vma_lookup() in do_pages_stat_array()
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Thu, 8 Apr 2021 20:24:41 +0000 (16:24 -0400)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Mon, 10 May 2021 16:39:28 +0000 (12:39 -0400)
commitda4442160cb9ecb9a022a4435a280ac0960cf4b4
tree374769d40d8ade7070ab76fe4e1410b815d24685
parent56eb04bf938f4bda8793e8d24357dca1db638600
mm/migrate: Use vma_lookup() in do_pages_stat_array()

Use vma_lookup() to find the VMA at a specific address.  As vma_lookup()
will return NULL if the address is not within any VMA, the start address
no longer needs to be validated.

Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
mm/migrate.c