History

Merge tag 'mm-hotfixes-stable-2022-07-11' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

Pull hotfixes from Andrew Morton: "Mainly MM fixes. About half for issues which were introduced after 5.18 and the remainder for longer-term issues" * tag 'mm-hotfixes-stable-2022-07-11' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm: mm: split huge PUD on wp_huge_pud fallback nilfs2: fix incorrect masking of permission flags for symlinks mm/rmap: fix dereferencing invalid subpage pointer in try_to_migrate_one() riscv/mm: fix build error while PAGE_TABLE_CHECK enabled without MMU Documentation: highmem: use literal block for code example in highmem.h comment mm: sparsemem: fix missing higher order allocation splitting mm/damon: use set_huge_pte_at() to make huge pte old sh: convert nommu io{re,un}map() to static inline functions mm: userfaultfd: fix UFFDIO_CONTINUE on fallocated shmem pages

Linus Torvalds committed 4 years ago

Commit 8e59a6a2 parents b537439 14c99d69 files · +63 −38Browse files

Showing the changes to include/linux (1 of 9 files). Show all

Unified · Split

include/linux/highmem.h+9−9
@@ -149,19 +149,19 @@ static inline void *kmap_local_folio(struct folio *folio, size_t offset); · 148 unmodified lines
149149 * It is used in atomic context when code wants to access the contents of a
150150 * page that might be allocated from high memory (see __GFP_HIGHMEM), for
151151 * example a page in the pagecache. The API has two functions, and they
152− * can be used in a manner similar to the following:
152+ * can be used in a manner similar to the following::
153153 *
154− * -- Find the page of interest. --
155− * struct page *page = find_get_page(mapping, offset);
154+ * // Find the page of interest.
155+ * struct page *page = find_get_page(mapping, offset);
156156 *
157− * -- Gain access to the contents of that page. --
158− * void *vaddr = kmap_atomic(page);
157+ * // Gain access to the contents of that page.
158+ * void *vaddr = kmap_atomic(page);
159159 *
160− * -- Do something to the contents of that page. --
161− * memset(vaddr, 0, PAGE_SIZE);
160+ * // Do something to the contents of that page.
161+ * memset(vaddr, 0, PAGE_SIZE);
162162 *
163− * -- Unmap that page. --
164− * kunmap_atomic(vaddr);
163+ * // Unmap that page.
164+ * kunmap_atomic(vaddr);
165165 *
166166 * Note that the kunmap_atomic() call takes the result of the kmap_atomic()
167167 * call, not the argument.