hulk inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I9CESE
-------------------------------------------------
Let's convert uswap_unmap_anon_page().
Signed-off-by: Kefeng Wang wangkefeng.wang@huawei.com --- mm/userswap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/userswap.c b/mm/userswap.c index e76e9d7a40de..20ee53dc5eea 100644 --- a/mm/userswap.c +++ b/mm/userswap.c @@ -163,7 +163,7 @@ static int uswap_unmap_anon_page(struct mm_struct *mm,
dec_mm_counter(mm, MM_ANONPAGES); add_reliable_page_counter(page, mm, -1); - page_remove_rmap(page, vma, false); + folio_remove_rmap_pte(page_folio(page), page, vma); page->mapping = NULL;
out_release_unlock: