Commit 6c9e0907 authored by Liu Song's avatar Liu Song Committed by Linus Torvalds

mm/vmscan.c: remove unused return value of shrink_node

The return value of shrink_node is not used, so remove unnecessary
operations.

Link: http://lkml.kernel.org/r/20191128143524.3223-1-fishland@aliyun.comSigned-off-by: default avatarLiu Song <liu.song11@zte.com.cn>
Reviewed-by: default avatarDavid Hildenbrand <david@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent fe4c86c9
...@@ -2695,7 +2695,7 @@ static void shrink_node_memcgs(pg_data_t *pgdat, struct scan_control *sc) ...@@ -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))); } 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; struct reclaim_state *reclaim_state = current->reclaim_state;
unsigned long nr_reclaimed, nr_scanned; unsigned long nr_reclaimed, nr_scanned;
...@@ -2874,8 +2874,6 @@ static bool shrink_node(pg_data_t *pgdat, struct scan_control *sc) ...@@ -2874,8 +2874,6 @@ static bool shrink_node(pg_data_t *pgdat, struct scan_control *sc)
*/ */
if (reclaimable) if (reclaimable)
pgdat->kswapd_failures = 0; pgdat->kswapd_failures = 0;
return reclaimable;
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment