Searched hist:"54 c4fe08f65e4c39c3d62f5d181f958e9c6c97f7" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/mm/ |
H A D | vmscan.c | diff 54c4fe08f65e4c39c3d62f5d181f958e9c6c97f7 Tue Apr 11 01:17:57 CDT 2023 Haifeng Xu <haifeng.xu@shopee.com> mm/vmscan: simplify shrink_node()
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.
Link: https://lkml.kernel.org/r/20230411061757.12041-1-haifeng.xu@shopee.com Signed-off-by: Haifeng Xu <haifeng.xu@shopee.com> Reviewed-by: David Hildenbrand <david@redhat.com> Cc: Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
|