aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateusz Nosek <[email protected]>2020-04-01 21:10:21 -0700
committerLinus Torvalds <[email protected]>2020-04-02 09:35:31 -0700
commitc4ecddfff1f27182d12db39cb3bbdd1e8cddf863 (patch)
treef94f2d554240a72f8ca0ec3da3f1f1c7a637c45a
parent4b7930626747079ca3a7c278d36002c6627eeb88 (diff)
mm/vmscan.c: do_try_to_free_pages(): clean code by removing unnecessary assignment
sc->memcg_low_skipped resets skipped_deactivate to 0 but this is not needed as this code path is never reachable with skipped_deactivate != 0 due to previous sc->skipped_deactivate branch. [[email protected]: rewrite changelog] Signed-off-by: Mateusz Nosek <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Acked-by: Johannes Weiner <[email protected]> Cc: Michal Hocko <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Linus Torvalds <[email protected]>
-rw-r--r--mm/vmscan.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c
index 3954f85a2a4f..2e8e690d2813 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -3093,7 +3093,6 @@ retry:
if (sc->memcg_low_skipped) {
sc->priority = initial_priority;
sc->force_deactivate = 0;
- sc->skipped_deactivate = 0;
sc->memcg_low_reclaim = 1;
sc->memcg_low_skipped = 0;
goto retry;