mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 15:41:52 +02:00
mm/damon/paddr: support only damos->ops_filters
DAMON physical address space operation set implementation (paddr) started handling both damos->filters and damos->ops_filters to avoid breakage during the change for the ->ops_filters setup. Now the change is done, so paddr's support of ->filters is only a waste that can safely be dropped. Remove it. Link: https://lkml.kernel.org/r/20250304211913.53574-6-sj@kernel.org Signed-off-by: SeongJae Park <sj@kernel.org> Cc: Jonathan Corbet <corbet@lwn.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
2a689e4e83
commit
627983a552
|
|
@ -256,10 +256,6 @@ static bool damos_pa_filter_out(struct damos *scheme, struct folio *folio)
|
|||
if (scheme->core_filters_allowed)
|
||||
return false;
|
||||
|
||||
damos_for_each_filter(filter, scheme) {
|
||||
if (damos_pa_filter_match(filter, folio))
|
||||
return !filter->allow;
|
||||
}
|
||||
damos_for_each_ops_filter(filter, scheme) {
|
||||
if (damos_pa_filter_match(filter, folio))
|
||||
return !filter->allow;
|
||||
|
|
@ -288,12 +284,6 @@ static unsigned long damon_pa_pageout(struct damon_region *r, struct damos *s,
|
|||
struct folio *folio;
|
||||
|
||||
/* check access in page level again by default */
|
||||
damos_for_each_filter(filter, s) {
|
||||
if (filter->type == DAMOS_FILTER_TYPE_YOUNG) {
|
||||
install_young_filter = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
damos_for_each_ops_filter(filter, s) {
|
||||
if (filter->type == DAMOS_FILTER_TYPE_YOUNG) {
|
||||
install_young_filter = false;
|
||||
|
|
@ -546,8 +536,6 @@ static bool damon_pa_scheme_has_filter(struct damos *s)
|
|||
{
|
||||
struct damos_filter *f;
|
||||
|
||||
damos_for_each_filter(f, s)
|
||||
return true;
|
||||
damos_for_each_ops_filter(f, s)
|
||||
return true;
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user