Re: [PATCH RESEND] mm/vmscan: simplify shrink_node()

From: David Hildenbrand
Date: Wed Apr 12 2023 - 03:59:08 EST


On 11.04.23 08:17, Haifeng Xu wrote:
The difference between sc->nr_reclaimed and nr_reclaimed is computed
three times. Introduce a new variable to record the value, so it only
needs to be computed once.

Signed-off-by: Haifeng Xu <haifeng.xu@xxxxxxxxxx>
---


Reviewed-by: David Hildenbrand <david@xxxxxxxxxx>

--
Thanks,

David / dhildenb