summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorHaifeng Xu <haifeng.xu@shopee.com>2023-04-11 09:17:57 +0300
committerAndrew Morton <akpm@linux-foundation.org>2023-04-19 02:30:02 +0300
commit54c4fe08f65e4c39c3d62f5d181f958e9c6c97f7 (patch)
tree8bd212ad77a91828d6e034b2d008e0c99b6b5a39 /arch
parent09a607c9cd23d9521e7be3ab5eb94f217d7a37f5 (diff)
downloadlinux-54c4fe08f65e4c39c3d62f5d181f958e9c6c97f7.tar.xz
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>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions