diff options
author | Liu Song <liu.song11@zte.com.cn> | 2020-01-30 22:14:08 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-01-31 10:30:38 -0800 |
commit | 6c9e0907fc8bc978e97bb78bbbc6e9bc8fc51cb3 (patch) | |
tree | 45a4213ea01f07eaeff1ee73548b41f10e7bf0e9 /mm/vmscan.c | |
parent | fe4c86c916d9151113372369f322e7436167e6f3 (diff) | |
download | linux-6c9e0907fc8bc978e97bb78bbbc6e9bc8fc51cb3.tar.gz linux-6c9e0907fc8bc978e97bb78bbbc6e9bc8fc51cb3.tar.bz2 linux-6c9e0907fc8bc978e97bb78bbbc6e9bc8fc51cb3.zip |
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.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>
Diffstat (limited to 'mm/vmscan.c')
-rw-r--r-- | mm/vmscan.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c index 572fb17c6273..9a543d128b58 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -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; } /* |