Re: [RFC PATCH v2 02/10] mm/damon/core: allow quota goals set zero effective size quota

From: Gutierrez Asier

Date: Wed Mar 04 2026 - 05:18:22 EST




On 3/4/2026 7:41 AM, SeongJae Park wrote:

I find the name of this function confusing. The function doesn't
actually set anything. Maybe better damos_quota_is_set()
> +/*
> + * damos_quota_set() - Return if the given quota is actually set.
> + * @quota: The quota to check.
> + *
> + * Returns true if the quota is set, false otherwise.
> + */
> +static bool damos_quota_set(struct damos_quota *quota)
> +{
> + return quota->esz || quota->sz || quota->ms ||
> + !damos_quota_goals_empty(quota);
> +}
> +


--
Asier Gutierrez
Huawei