mm-damon-vaddr-separate-commonly-usable-functions.patch removed from -mm tree
The patch titled
Subject: mm/damon/vaddr: separate commonly usable functions
has been removed from the -mm tree. Its filename was
mm-damon-vaddr-separate-commonly-usable-functions.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: SeongJae Park <[email protected]>
Subject: mm/damon/vaddr: separate commonly usable functions
This commit moves functions in the default virtual address spaces monitoring primitives that commonly usable from other address spaces like physical address space into a header file. Those will be reused by the physical address space monitoring primitives which will be implemented by the following commit.
---
mm/damon/Makefile | 2 mm/damon/prmtv-common.c | 87 +++++++++++++++++++++++++++++++++++++ mm/damon/prmtv-common.h | 17 +++++++ mm/damon/vaddr.c | 88 +------------------------------------- 4 files changed, 108 insertions(+), 86 deletions(-)
mm/damon/Makefile renamed from mm/damon/Makefile~mm-damon-vaddr-separate-commonly-usable-functions +1 -1
@@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0 obj-$(CONFIG_DAMON) := core.o -obj-$(CONFIG_DAMON_VADDR) += vaddr.o +obj-$(CONFIG_DAMON_VADDR) += prmtv-common.o vaddr.o obj-$(CONFIG_DAMON_DBGFS) += dbgfs.o
mm/damon/prmtv-common.c new file +87 -0
87 lines not on this page · raw message
mm/damon/prmtv-common.h new file +17 -0
@@ -0,0 +1,17 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* +* Common Primitives for Data Access Monitoring +* +* Author: SeongJae Park <[email protected]> +*/ + +#include <linux/damon.h> +#include <linux/random.h> + +/* Get a random number in [l, r) */ +#define damon_rand (l, r) (l + prandom_u32_max(r - l)) + +struct page *damon_get_page (unsigned long pfn); + +void damon_ptep_mkold (pte_t *pte,struct mm_struct *mm,unsigned long addr); +void damon_pmdp_mkold (pmd_t *pmd,struct mm_struct *mm,unsigned long addr);
mm/damon/vaddr.c renamed from mm/damon/vaddr.c~mm-damon-vaddr-separate-commonly-usable-functions +3 -85
110 lines not on this page · raw message
_
Patches currently in -mm which might be from [email protected] are