Jason Gunthorpe 24cee8ab41 mm/hmm: do not check pmd_protnone twice in hmm_vma_handle_pmd()
pmd_to_hmm_pfn_flags() already checks it and makes the cpu flags 0. If no
fault is requested then the pfns should be returned with the not valid
flags.

It should not unconditionally fault if faulting is not requested.

Fixes: 2aee09d8c116 ("mm/hmm: change hmm_vma_fault() to allow write fault on page basis")
Reviewed-by: Ralph Campbell <rcampbell@nvidia.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2020-03-26 14:33:37 -03:00
..
2019-08-30 22:43:58 -07:00
2020-02-04 03:05:25 +00:00
2019-12-04 11:08:30 -08:00
2020-02-04 03:05:25 +00:00
2020-02-04 07:21:04 +00:00
2018-06-07 17:34:36 -07:00
2020-02-07 14:48:44 -05:00
2019-09-17 15:20:17 -07:00
2020-01-20 08:05:16 +01:00