Lines Matching full:filters

144  * access pattern, the watermarks, the quotas, and the filters,
532 * filters directory
548 struct damon_sysfs_scheme_filters *filters) in damon_sysfs_scheme_filters_rm_dirs() argument
550 struct damon_sysfs_scheme_filter **filters_arr = filters->filters_arr; in damon_sysfs_scheme_filters_rm_dirs()
553 for (i = 0; i < filters->nr; i++) in damon_sysfs_scheme_filters_rm_dirs()
555 filters->nr = 0; in damon_sysfs_scheme_filters_rm_dirs()
557 filters->filters_arr = NULL; in damon_sysfs_scheme_filters_rm_dirs()
561 struct damon_sysfs_scheme_filters *filters, int nr_filters) in damon_sysfs_scheme_filters_add_dirs() argument
566 damon_sysfs_scheme_filters_rm_dirs(filters); in damon_sysfs_scheme_filters_add_dirs()
574 filters->filters_arr = filters_arr; in damon_sysfs_scheme_filters_add_dirs()
579 damon_sysfs_scheme_filters_rm_dirs(filters); in damon_sysfs_scheme_filters_add_dirs()
585 &filters->kobj, "%d", i); in damon_sysfs_scheme_filters_add_dirs()
588 damon_sysfs_scheme_filters_rm_dirs(filters); in damon_sysfs_scheme_filters_add_dirs()
593 filters->nr++; in damon_sysfs_scheme_filters_add_dirs()
601 struct damon_sysfs_scheme_filters *filters = container_of(kobj, in nr_filters_show() local
604 return sysfs_emit(buf, "%d\n", filters->nr); in nr_filters_show()
610 struct damon_sysfs_scheme_filters *filters; in nr_filters_store() local
618 filters = container_of(kobj, struct damon_sysfs_scheme_filters, kobj); in nr_filters_store()
622 err = damon_sysfs_scheme_filters_add_dirs(filters, nr); in nr_filters_store()
1446 struct damon_sysfs_scheme_filters *filters; member
1548 struct damon_sysfs_scheme_filters *filters = in damon_sysfs_scheme_set_filters() local
1552 if (!filters) in damon_sysfs_scheme_set_filters()
1554 err = kobject_init_and_add(&filters->kobj, in damon_sysfs_scheme_set_filters()
1556 "filters"); in damon_sysfs_scheme_set_filters()
1558 kobject_put(&filters->kobj); in damon_sysfs_scheme_set_filters()
1560 scheme->filters = filters; in damon_sysfs_scheme_set_filters()
1627 kobject_put(&scheme->filters->kobj); in damon_sysfs_scheme_add_dirs()
1628 scheme->filters = NULL; in damon_sysfs_scheme_add_dirs()
1648 damon_sysfs_scheme_filters_rm_dirs(scheme->filters); in damon_sysfs_scheme_rm_dirs()
1649 kobject_put(&scheme->filters->kobj); in damon_sysfs_scheme_rm_dirs()
2039 sysfs_scheme->filters; in damon_sysfs_mk_scheme()