lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <f2e7b906-99b8-8b85-2be9-ee6f9d0e11ea@redhat.com>
Date:   Thu, 28 Nov 2019 16:10:25 +0100
From:   David Hildenbrand <david@...hat.com>
To:     Liu Song <fishland@...yun.com>, akpm@...ux-foundation.org,
        mhocko@...e.com, hannes@...xchg.org, daniel.m.jordan@...cle.com,
        laoar.shao@...il.com, yang.shi@...ux.alibaba.com,
        aryabinin@...tuozzo.com, mgorman@...hsingularity.net
Cc:     linux-mm@...ck.org, linux-kernel@...r.kernel.org,
        liu.song11@....com.cn
Subject: Re: [PATCH] mm/vmscan.c: remove unused return value of shrink_node

On 28.11.19 15:35, Liu Song wrote:
> From: Liu Song <liu.song11@....com.cn>
> 
> The return value of shrink_node is not used, so remove
> unnecessary operations.
> 
> Signed-off-by: Liu Song <liu.song11@....com.cn>
> ---
>  mm/vmscan.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
> 
> diff --git a/mm/vmscan.c b/mm/vmscan.c
> index 44df66a98f2a..fd282d86f4ad 100644
> --- a/mm/vmscan.c
> +++ b/mm/vmscan.c
> @@ -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;
>  }
>  
>  /*
> 

Reviewed-by: David Hildenbrand <david@...hat.com>

-- 
Thanks,

David / dhildenb

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ