Lines Matching refs:goal
824 * quota goal directory
848 struct damos_sysfs_quota_goal *goal = container_of(kobj,
852 damos_sysfs_quota_goal_metric_strs[goal->metric]);
858 struct damos_sysfs_quota_goal *goal = container_of(kobj,
864 goal->metric = m;
874 struct damos_sysfs_quota_goal *goal = container_of(kobj, struct
877 return sysfs_emit(buf, "%lu\n", goal->target_value);
883 struct damos_sysfs_quota_goal *goal = container_of(kobj, struct
885 int err = kstrtoul(buf, 0, &goal->target_value);
893 struct damos_sysfs_quota_goal *goal = container_of(kobj, struct
896 return sysfs_emit(buf, "%lu\n", goal->current_value);
902 struct damos_sysfs_quota_goal *goal = container_of(kobj, struct
904 int err = kstrtoul(buf, 0, &goal->current_value);
970 struct damos_sysfs_quota_goal **goals_arr, *goal;
984 goal = damos_sysfs_quota_goal_alloc();
985 if (!goal) {
990 err = kobject_init_and_add(&goal->kobj,
994 kobject_put(&goal->kobj);
999 goals_arr[i] = goal;
1926 struct damos_quota_goal *goal, *next;
1929 damos_for_each_quota_goal_safe(goal, next, quota)
1930 damos_destroy_quota_goal(goal);
1939 goal = damos_new_quota_goal(sysfs_goal->metric,
1941 if (!goal)
1944 goal->current_value = sysfs_goal->current_value;
1945 damos_add_quota_goal(quota, goal);