Revert "ANDROID: fix up 60500a4228 ("ANDROID: mm: add a field to store names for private anonymous memory")"

This reverts commit b5c8a97d50.
Replacing out-of-tree implementation with the upstream one.

Bug: 120441514
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: I8f97071b73bfb1af66a8349c9575e7c53af00642
This commit is contained in:
Suren Baghdasaryan
2021-08-04 23:00:40 -07:00
parent 3778d1a75a
commit bf8d29c109

View File

@@ -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, "<fault>]");
return;