mm/hmm: simplify hmm_vma_walk_hugetlb_entry()
authorChristoph Hellwig <hch@lst.de>
Mon, 16 Mar 2020 13:53:08 +0000 (14:53 +0100)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 26 Mar 2020 17:33:37 +0000 (14:33 -0300)
commit45050692dec83a67c0325535aae984f56560e3a9
tree6ecb5ba4026925f60c8524881c10402d54b5cc7f
parent96268163f9c9443e7f73a202253f68566f93dc79
mm/hmm: simplify hmm_vma_walk_hugetlb_entry()

Remove the rather confusing goto label and just handle the fault case
directly in the branch checking for it.

Link: https://lore.kernel.org/r/20200316135310.899364-4-hch@lst.de
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
mm/hmm.c