mm/vmscan.c: remove unused return value of shrink_node
Subsystems (3)
PATCH 1/1 mm/vmscan.c: remove unused return value of shrink_node
From: Liu Song <[email protected]>
The return value of shrink_node is not used, so remove unnecessary operations.
Signed-off-by Liu Song <[email protected]>
--- mm/vmscan.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
mm/vmscan.c +1 -3
@@ -2652,7 +2652,7 @@ static bool pgdat_memcg_congested(pg_data_t *pgdat, struct mem_cgroup *memcg) (memcg &&memcg_congested (pgdat, memcg)); } -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;
@@ -2818,8 +2818,6 @@ static bool shrink_node(pg_data_t *pgdat, struct scan_control *sc)*/ if (reclaimable) pgdat->kswapd_failures =0 ; - -return reclaimable; }/*
Signature · 1 line
2.20.1
Quoted 25 lines · Liu Song
From: Liu Song <[email protected]>
The return value of
shrink_nodeis not used, so remove unnecessary operations.Signed-off-by Liu Song <[email protected]>--- mm/vmscan.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)mm/vmscan.c +1
-1@@ -2652,7 +2652,7 @@ static bool pgdat_memcg_congested(pg_data_t *pgdat, struct mem_cgroup *memcg) (memcg &&memcg_congested (pgdat, memcg)); } -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;
mm/vmscan.c static bool shrink_node(pg_data_t *pgdat, struct scan_control *sc) · line 2823
Quoted 8 lines
mm/vmscan.c +0
-2@@ -2818,8 +2818,6 @@ static bool shrink_node(pg_data_t *pgdat, struct scan_control *sc)*/ if (reclaimable) pgdat->kswapd_failures =0 ; - -return reclaimable; }/*
Reviewed-by David Hildenbrand <[email protected]>
Signature · 3 lines
Thanks, David / dhildenb