From bf8d29c109b47c7ba9a88b6eadd782882735b2dc Mon Sep 17 00:00:00 2001 From: Suren Baghdasaryan Date: Wed, 4 Aug 2021 23:00:40 -0700 Subject: [PATCH] Revert "ANDROID: fix up 60500a42286d ("ANDROID: mm: add a field to store names for private anonymous memory")" This reverts commit b5c8a97d5085738b62ecd9c0b14574b3ef384bec. Replacing out-of-tree implementation with the upstream one. Bug: 120441514 Signed-off-by: Suren Baghdasaryan Change-Id: I8f97071b73bfb1af66a8349c9575e7c53af00642 --- fs/proc/task_mmu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c index 154b9f5299e2..ea12671a6710 100644 --- a/fs/proc/task_mmu.c +++ b/fs/proc/task_mmu.c @@ -147,8 +147,8 @@ static void seq_print_vma_name(struct seq_file *m, struct vm_area_struct *vma) long pages_pinned; struct page *page; - pages_pinned = get_user_pages_remote(mm, page_start_vaddr, 1, 0, - &page, NULL, NULL); + pages_pinned = get_user_pages_remote(current, mm, + page_start_vaddr, 1, 0, &page, NULL, NULL); if (pages_pinned < 1) { seq_puts(m, "]"); return;