Lines Matching refs:quotas

1189 static int damon_sysfs_quotas_add_dirs(struct damon_sysfs_quotas *quotas)  in damon_sysfs_quotas_add_dirs()  argument
1200 &quotas->kobj, "weights"); in damon_sysfs_quotas_add_dirs()
1205 quotas->weights = weights; in damon_sysfs_quotas_add_dirs()
1213 &damos_sysfs_quota_goals_ktype, &quotas->kobj, in damon_sysfs_quotas_add_dirs()
1219 quotas->goals = goals; in damon_sysfs_quotas_add_dirs()
1225 static void damon_sysfs_quotas_rm_dirs(struct damon_sysfs_quotas *quotas) in damon_sysfs_quotas_rm_dirs() argument
1227 kobject_put(&quotas->weights->kobj); in damon_sysfs_quotas_rm_dirs()
1228 damos_sysfs_quota_goals_rm_dirs(quotas->goals); in damon_sysfs_quotas_rm_dirs()
1229 kobject_put(&quotas->goals->kobj); in damon_sysfs_quotas_rm_dirs()
1235 struct damon_sysfs_quotas *quotas = container_of(kobj, in ms_show() local
1238 return sysfs_emit(buf, "%lu\n", quotas->ms); in ms_show()
1244 struct damon_sysfs_quotas *quotas = container_of(kobj, in ms_store() local
1246 int err = kstrtoul(buf, 0, &quotas->ms); in ms_store()
1256 struct damon_sysfs_quotas *quotas = container_of(kobj, in bytes_show() local
1259 return sysfs_emit(buf, "%lu\n", quotas->sz); in bytes_show()
1265 struct damon_sysfs_quotas *quotas = container_of(kobj, in bytes_store() local
1267 int err = kstrtoul(buf, 0, &quotas->sz); in bytes_store()
1277 struct damon_sysfs_quotas *quotas = container_of(kobj, in reset_interval_ms_show() local
1280 return sysfs_emit(buf, "%lu\n", quotas->reset_interval_ms); in reset_interval_ms_show()
1286 struct damon_sysfs_quotas *quotas = container_of(kobj, in reset_interval_ms_store() local
1288 int err = kstrtoul(buf, 0, &quotas->reset_interval_ms); in reset_interval_ms_store()
1298 struct damon_sysfs_quotas *quotas = container_of(kobj, in effective_bytes_show() local
1301 return sysfs_emit(buf, "%lu\n", quotas->effective_sz); in effective_bytes_show()
1444 struct damon_sysfs_quotas *quotas; member
1508 struct damon_sysfs_quotas *quotas = damon_sysfs_quotas_alloc(); in damon_sysfs_scheme_set_quotas() local
1511 if (!quotas) in damon_sysfs_scheme_set_quotas()
1513 err = kobject_init_and_add(&quotas->kobj, &damon_sysfs_quotas_ktype, in damon_sysfs_scheme_set_quotas()
1517 err = damon_sysfs_quotas_add_dirs(quotas); in damon_sysfs_scheme_set_quotas()
1520 scheme->quotas = quotas; in damon_sysfs_scheme_set_quotas()
1524 kobject_put(&quotas->kobj); in damon_sysfs_scheme_set_quotas()
1633 kobject_put(&scheme->quotas->kobj); in damon_sysfs_scheme_add_dirs()
1634 scheme->quotas = NULL; in damon_sysfs_scheme_add_dirs()
1645 damon_sysfs_quotas_rm_dirs(scheme->quotas); in damon_sysfs_scheme_rm_dirs()
1646 kobject_put(&scheme->quotas->kobj); in damon_sysfs_scheme_rm_dirs()
1993 err = damos_sysfs_add_quota_score(sysfs_scheme->quotas->goals, in damos_sysfs_set_quota_scores()
2025 sysfs_schemes->schemes_arr[schemes_idx++]->quotas; in damos_sysfs_update_effective_quotas()
2035 struct damon_sysfs_quotas *sysfs_quotas = sysfs_scheme->quotas; in damon_sysfs_mk_scheme()