Commit 9eefefd8 authored by Fabio M. De Francesco's avatar Fabio M. De Francesco Committed by Andrew Morton

mm: remove an ambiguous sentence from kmap_local_folio() kdocs

In the kdocs of kmap_local_folio() there is a an ambiguous sentence which
suggests to use this API "only when really necessary".

On the contrary, since kmap() and kmap_atomic() are deprecated, both
kmap_local_folio(), as well as kmap_local_page(), must be preferred to the
previous ones.

Therefore, remove the above-mentioned sentence exactly how it has
previously been done for the kmap_local_page() kdocs in commit
72f1c55a ("highmem: delete a sentence from kmap_local_page() kdocs").

Link: https://lkml.kernel.org/r/20230105120424.30055-1-fmdefrancesco@gmail.comSigned-off-by: default avatarFabio M. De Francesco <fmdefrancesco@gmail.com>
Reviewed-by: default avatarIra Weiny <ira.weiny@intel.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 541e06b7
...@@ -119,9 +119,8 @@ static inline void *kmap_local_page(struct page *page); ...@@ -119,9 +119,8 @@ static inline void *kmap_local_page(struct page *page);
* virtual address of the direct mapping. Only real highmem pages are * virtual address of the direct mapping. Only real highmem pages are
* temporarily mapped. * temporarily mapped.
* *
* While it is significantly faster than kmap() for the higmem case it * While it is significantly faster than kmap() for the highmem case it
* comes with restrictions about the pointer validity. Only use when really * comes with restrictions about the pointer validity.
* necessary.
* *
* On HIGHMEM enabled systems mapping a highmem page has the side effect of * On HIGHMEM enabled systems mapping a highmem page has the side effect of
* disabling migration in order to keep the virtual address stable across * disabling migration in order to keep the virtual address stable across
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment