diff options
author | zhenwei pi <pizhenwei@bytedance.com> | 2022-04-07 08:40:08 +0200 |
---|---|---|
committer | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-04-07 16:11:20 +0200 |
commit | 98ea02597b9967c0817d29fee2f96d21b9e59ca5 (patch) | |
tree | 99da71c406f2e47fa427ce62d21155ccf7637536 /Documentation/cdrom | |
parent | mm/mempolicy: Use vma_alloc_folio() in new_page() (diff) | |
download | linux-98ea02597b9967c0817d29fee2f96d21b9e59ca5.tar.xz linux-98ea02597b9967c0817d29fee2f96d21b9e59ca5.zip |
mm/rmap: Fix handling of hugetlbfs pages in page_vma_mapped_walk
page_mapped_in_vma() sets nr_pages to 1, which is usually correct as we
only want to know about the precise page and not about other pages in
the folio. However, hugetlbfs does want to know about the entire hpage,
and using nr_pages to get the size of the hpage is wrong. We could
change page_mapped_in_vma() to special-case hugetlbfs pages, but it's
better to ignore nr_pages in page_vma_mapped_walk() and get the size
from the VMA instead.
Fixes: 2aff7a4755bed ("mm: Convert page_vma_mapped_walk to work on PFNs")
Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
Reviewed-by: Muchun Song <songmuchun@bytedance.com>
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
[edit commit message, use hstate directly]
Diffstat (limited to 'Documentation/cdrom')
0 files changed, 0 insertions, 0 deletions