Re: [PATCH v7 2/7] mm: migrate: Add promote_misplaced_memcg_folios()

Bharata B Rao
2026-05-06T06:15:30Z

On 04-May-26 11:44 PM, Donet Tom wrote:
> Hi Bharata
>
> On 5/4/26 11:39 AM, Bharata B Rao wrote:
>> +int promote_misplaced_memcg_folios(struct list_head *folio_list, int node)
>> +{
>> +    struct mem_cgroup *memcg = NULL;
>> +    unsigned int nr_succeeded = 0;
>> +    struct folio *first;
>> +    int nr_remaining;
>> +
>> +    if (list_empty(folio_list))
>> +        return 0;
>> +
>> +    first = list_first_entry(folio_list, struct folio, lru);
>> +#ifdef CONFIG_DEBUG_VM
>> +    {
>> +        struct folio *f;
>> +        list_for_each_entry(f, folio_list, lru)
>> +        VM_WARN_ON_ONCE(folio_memcg(f) != folio_memcg(first));
>
>
> It looks like the indentation might be off here.

Yeah looks like. Will fix.

Regards,
Bharata.