mm: Remove a sentence from kmap_local_folio() kdocs
Subsystems (2)
PATCH 1/1 mm: Remove a 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.
--- include/linux/highmem.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
include/linux/highmem.h +1 -2
@@ -120,8 +120,7 @@ static inline void *kmap_local_page(struct page *page);* temporarily mapped. * * While it is significantly faster than kmap() for the higmem case it -* comes with restrictions about the pointer validity. Only use when really -* necessary. +* comes with restrictions about the pointer validity. * * On HIGHMEM enabled systems mapping a highmem page has the side effect of * disabling migration in order to keep the virtual address stable across
Signature · 1 line
2.39.0
Quoted 2 lines · Fabio M. De Francesco
In the kdocs of
kmap_local_folio()there is a an ambiguous sentence which suggests to use this API "only when really necessary".
Looks like you removed it from kmap_local_page() docs in 72f1c55adf70 after I copied it in 53c36de0701f. That information should probably also be in this changelog.
Quoted 1 line
* While it is significantly faster than
kmap()for the higmem case it
Also, s/higmem/highmem/ (both in the kmap_local_page() and kmap_local_folio() docs)
Quoted 8 lines · On mercoledì 4 gennaio 2023 15:40:26 CET Matthew Wilcox wrote:
Quoted 2 lines · Fabio M. De Francesco
In the kdocs of
kmap_local_folio()there is a an ambiguous sentence which suggests to use this API "only when really necessary".Looks like you removed it from
kmap_local_page()docs in72f1c55adf70after I copied it in53c36de0701f. That information should probably also be in this changelog.
Matthew,
I just added that information in v2 (I didn't know that I should have better added it - thanks for letting me know about this practice):
https://lore.kernel.org/lkml/[email protected]/
Quoted 6 lines
Quoted 2 lines
* While it is significantly faster than
kmap()for the higmem case itAlso, s/higmem/highmem/ (both in the
kmap_local_page()andkmap_local_folio()docs)
Since these spelling mistakes are un-related to the purpose of the deletion, I fixed them in a separate patch:
https://lore.kernel.org/lkml/[email protected]/
Again thanks for commenting my patch and suggesting improvements.
Fabio