]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: gup: use helper PAGE_ALIGNED in populate_vma_page_range()
authorMiaohe Lin <linmiaohe@huawei.com>
Mon, 23 Aug 2021 23:59:09 +0000 (09:59 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 25 Aug 2021 23:33:43 +0000 (09:33 +1000)
commit092792c3d8f24253b5507656378f57b7da7fbd2b
tree148d735c622080550498b5997adcf4a4601d9c76
parent77dc947e0e0fc039abd6a19c36dcce75003e5b37
mm: gup: use helper PAGE_ALIGNED in populate_vma_page_range()

Use helper PAGE_ALIGNED to check if address is aligned to PAGE_SIZE.
Minor readability improvement.

Link: https://lkml.kernel.org/r/20210807093620.21347-6-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: John Hubbard <jhubbard@nvidia.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Cc: Jan Kara <jack@suse.cz>
Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
mm/gup.c