diff options
author | Vishal Moola (Oracle) <vishal.moola@gmail.com> | 2023-10-20 21:33:31 +0300 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-10-26 02:47:14 +0300 |
commit | 98b32d296d95d7aa0516c36b72406277412268cd (patch) | |
tree | 30bf5c812ab30e32979c9c134979a64529be4c14 /mm/mmap.c | |
parent | b455f39d228935f88eebcd1f7c1a6981093c6a3b (diff) | |
download | linux-98b32d296d95d7aa0516c36b72406277412268cd.tar.xz |
mm/khugepaged: convert collapse_pte_mapped_thp() to use folios
This removes 2 calls to compound_head() and helps convert khugepaged to
use folios throughout.
Previously, if the address passed to collapse_pte_mapped_thp()
corresponded to a tail page, the scan would fail immediately. Using
filemap_lock_folio() we get the corresponding folio back and try to
operate on the folio instead.
Link: https://lkml.kernel.org/r/20231020183331.10770-6-vishal.moola@gmail.com
Signed-off-by: Vishal Moola (Oracle) <vishal.moola@gmail.com>
Reviewed-by: Rik van Riel <riel@surriel.com>
Reviewed-by: Yang Shi <shy828301@gmail.com>
Cc: Kefeng Wang <wangkefeng.wang@huawei.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/mmap.c')
0 files changed, 0 insertions, 0 deletions