diff options
| author | Wei Yang <richard.weiyang@gmail.com> | 2022-04-29 09:16:04 +0300 |
|---|---|---|
| committer | akpm <akpm@linux-foundation.org> | 2022-04-29 09:16:04 +0300 |
| commit | 8b3a899abe15e68b8b82ff96c2f4e8c9a37874a0 (patch) | |
| tree | e0d7c17f699accbf7562c173fd5c64cad1d110aa /include/linux | |
| parent | bc53008eea55330f485c956338d3c59f96c70c08 (diff) | |
| download | linux-8b3a899abe15e68b8b82ff96c2f4e8c9a37874a0.tar.xz | |
mm/vmscan: sc->reclaim_idx must be a valid zone index
lruvec_lru_size() is only used in get_scan_count(), so the only possible
zone_idx is sc->reclaim_idx. Since sc->reclaim_idx is ensured to be a
valid zone idex, we can remove the extra check for zone iteration.
Link: https://lkml.kernel.org/r/20220317234624.23358-1-richard.weiyang@gmail.com
Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
