]> git.baikalelectronics.ru Git - kernel.git/commitdiff
mm/vmscan.c: remove unused return value of shrink_node
authorLiu Song <liu.song11@zte.com.cn>
Fri, 31 Jan 2020 06:14:08 +0000 (22:14 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 31 Jan 2020 18:30:38 +0000 (10:30 -0800)
The return value of shrink_node is not used, so remove unnecessary
operations.

Link: http://lkml.kernel.org/r/20191128143524.3223-1-fishland@aliyun.com
Signed-off-by: Liu Song <liu.song11@zte.com.cn>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/vmscan.c

index 572fb17c62733b2cca817953f0b45212abb5bebb..9a543d128b588d9dfecef2365090720a859586cc 100644 (file)
@@ -2695,7 +2695,7 @@ static void shrink_node_memcgs(pg_data_t *pgdat, struct scan_control *sc)
        } while ((memcg = mem_cgroup_iter(target_memcg, memcg, NULL)));
 }
 
-static bool shrink_node(pg_data_t *pgdat, struct scan_control *sc)
+static void shrink_node(pg_data_t *pgdat, struct scan_control *sc)
 {
        struct reclaim_state *reclaim_state = current->reclaim_state;
        unsigned long nr_reclaimed, nr_scanned;
@@ -2874,8 +2874,6 @@ again:
         */
        if (reclaimable)
                pgdat->kswapd_failures = 0;
-
-       return reclaimable;
 }
 
 /*