summaryrefslogtreecommitdiffstats
path: root/Documentation/vm
diff options
context:
space:
mode:
authorJérôme Glisse <jglisse@redhat.com>2019-05-13 20:19:58 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2019-05-14 12:47:48 -0400
commit73231612dc7c907bd96880a4086ee55eef6b6888 (patch)
tree2ac729baa37d66a450a71bfe2c039153807f0bfb /Documentation/vm
parent25f23a0c7127b65c4d8200ccda8a352ad5ce1e1d (diff)
mm/hmm: improve and rename hmm_vma_fault() to hmm_range_fault()
Minor optimization around hmm_pte_need_fault(). Rename for consistency between code, comments and documentation. Also improves the comments on all the possible returns values. Improve the function by returning the number of populated entries in pfns array. Link: http://lkml.kernel.org/r/20190403193318.16478-6-jglisse@redhat.com Signed-off-by: Jérôme Glisse <jglisse@redhat.com> Reviewed-by: Ralph Campbell <rcampbell@nvidia.com> Cc: John Hubbard <jhubbard@nvidia.com> Cc: Dan Williams <dan.j.williams@intel.com> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Balbir Singh <bsingharora@gmail.com> Cc: Dan Carpenter <dan.carpenter@oracle.com> Cc: Ira Weiny <ira.weiny@intel.com> Cc: Matthew Wilcox <willy@infradead.org> Cc: Souptick Joarder <jrdr.linux@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/vm')
-rw-r--r--Documentation/vm/hmm.rst8
1 files changed, 1 insertions, 7 deletions
diff --git a/Documentation/vm/hmm.rst b/Documentation/vm/hmm.rst
index d9b27bdadd1b..61f073215a8d 100644
--- a/Documentation/vm/hmm.rst
+++ b/Documentation/vm/hmm.rst
@@ -190,13 +190,7 @@ When the device driver wants to populate a range of virtual addresses, it can
190use either:: 190use either::
191 191
192 long hmm_range_snapshot(struct hmm_range *range); 192 long hmm_range_snapshot(struct hmm_range *range);
193 int hmm_vma_fault(struct vm_area_struct *vma, 193 long hmm_range_fault(struct hmm_range *range, bool block);
194 struct hmm_range *range,
195 unsigned long start,
196 unsigned long end,
197 hmm_pfn_t *pfns,
198 bool write,
199 bool block);
200 194
201The first one (hmm_range_snapshot()) will only fetch present CPU page table 195The first one (hmm_range_snapshot()) will only fetch present CPU page table
202entries and will not trigger a page fault on missing or non-present entries. 196entries and will not trigger a page fault on missing or non-present entries.