[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240809201038.2648058-1-willy@infradead.org>
Date: Fri, 9 Aug 2024 21:10:36 +0100
From: "Matthew Wilcox (Oracle)" <willy@...radead.org>
To: Peter Zijlstra <peterz@...radead.org>
Cc: "Matthew Wilcox (Oracle)" <willy@...radead.org>,
Ingo Molnar <mingo@...hat.com>,
Arnaldo Carvalho de Melo <acme@...nel.org>,
Namhyung Kim <namhyung@...nel.org>,
linux-perf-users@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] perf: Remove setting of page->index and ->mapping
I have no idea why perf is setting these fields. There should be
no need to do this.
Signed-off-by: Matthew Wilcox (Oracle) <willy@...radead.org>
---
kernel/events/core.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/kernel/events/core.c b/kernel/events/core.c
index aa3450bdc227..f55ab04f3df0 100644
--- a/kernel/events/core.c
+++ b/kernel/events/core.c
@@ -6221,8 +6221,6 @@ static vm_fault_t perf_mmap_fault(struct vm_fault *vmf)
goto unlock;
get_page(vmf->page);
- vmf->page->mapping = vmf->vma->vm_file->f_mapping;
- vmf->page->index = vmf->pgoff;
ret = 0;
unlock:
--
2.43.0
Powered by blists - more mailing lists