mm/page_table_check: remove unused parameters in page_table_check_set()
JIRA: https://issues.redhat.com/browse/RHEL-27743 This patch is a backport of the following upstream commit: commit 2f933eaf5bbf49b71319549464df44b87074a8ac Author: Kemeng Shi <shikemeng@huaweicloud.com> Date: Fri Jul 14 01:26:30 2023 +0800 mm/page_table_check: remove unused parameters in page_table_check_set() Remove unused mm and addr in page_table_check_set(). Link: https://lkml.kernel.org/r/20230713172636.1705415-3-shikemeng@huaweicloud.com Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com> Cc: Pavel Tatashin <pasha.tatashin@soleen.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Rafael Aquini <raquini@redhat.com>
This commit is contained in:
parent
f751c643e7
commit
55daeed218
|
@ -97,8 +97,7 @@ static void page_table_check_clear(unsigned long pfn, unsigned long pgcnt)
|
|||
* verify that it is of correct type and is not being mapped with a different
|
||||
* type to a different process.
|
||||
*/
|
||||
static void page_table_check_set(struct mm_struct *mm, unsigned long addr,
|
||||
unsigned long pfn, unsigned long pgcnt,
|
||||
static void page_table_check_set(unsigned long pfn, unsigned long pgcnt,
|
||||
bool rw)
|
||||
{
|
||||
struct page_ext *page_ext;
|
||||
|
@ -203,8 +202,7 @@ void __page_table_check_pte_set(struct mm_struct *mm, unsigned long addr,
|
|||
|
||||
__page_table_check_pte_clear(mm, addr, ptep_get(ptep));
|
||||
if (pte_user_accessible_page(pte)) {
|
||||
page_table_check_set(mm, addr, pte_pfn(pte),
|
||||
PAGE_SIZE >> PAGE_SHIFT,
|
||||
page_table_check_set(pte_pfn(pte), PAGE_SIZE >> PAGE_SHIFT,
|
||||
pte_write(pte));
|
||||
}
|
||||
}
|
||||
|
@ -218,8 +216,7 @@ void __page_table_check_pmd_set(struct mm_struct *mm, unsigned long addr,
|
|||
|
||||
__page_table_check_pmd_clear(mm, addr, *pmdp);
|
||||
if (pmd_user_accessible_page(pmd)) {
|
||||
page_table_check_set(mm, addr, pmd_pfn(pmd),
|
||||
PMD_SIZE >> PAGE_SHIFT,
|
||||
page_table_check_set(pmd_pfn(pmd), PMD_SIZE >> PAGE_SHIFT,
|
||||
pmd_write(pmd));
|
||||
}
|
||||
}
|
||||
|
@ -233,8 +230,7 @@ void __page_table_check_pud_set(struct mm_struct *mm, unsigned long addr,
|
|||
|
||||
__page_table_check_pud_clear(mm, addr, *pudp);
|
||||
if (pud_user_accessible_page(pud)) {
|
||||
page_table_check_set(mm, addr, pud_pfn(pud),
|
||||
PUD_SIZE >> PAGE_SHIFT,
|
||||
page_table_check_set(pud_pfn(pud), PUD_SIZE >> PAGE_SHIFT,
|
||||
pud_write(pud));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue