mm/damon: introduce struct damos_access_pattern
mainline inclusion from mainline-v6.2-rc6 commit f5a79d7c category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I6MRUG Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f5a79d7c0c87c8d88bb5e3f3c898258fdf1b3b05 -------------------------------- damon_new_scheme() has too many parameters, so introduce struct damos_access_pattern to simplify it. In additon, we can't use a bpf trace kprobe that has more than 5 parameters. Link: https://lkml.kernel.org/r/20220908191443.129534-1-sj@kernel.org Signed-off-by:Yajun Deng <yajun.deng@linux.dev> Signed-off-by:
SeongJae Park <sj@kernel.org> Reviewed-by:
SeongJae Park <sj@kernel.org> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Ze Zuo <zuoze1@huawei.com>
Loading
Please sign in to comment